diff options
author | Jason Merrill <jason@redhat.com> | 2015-12-15 11:21:50 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-12-15 11:21:50 -0500 |
commit | 951c9e90e3c73a73dde3bbeb43a7bf882803b254 (patch) | |
tree | 265ab661b46554c6b41b1b672c767dd4a17d9092 /gcc/hash-map.h | |
parent | 57e8ab2468e4ee93839e3bbe4e2a33b8d95dbe81 (diff) | |
download | gcc-951c9e90e3c73a73dde3bbeb43a7bf882803b254.zip gcc-951c9e90e3c73a73dde3bbeb43a7bf882803b254.tar.gz gcc-951c9e90e3c73a73dde3bbeb43a7bf882803b254.tar.bz2 |
* hash-map.h, hash-table.h: Make copy constructors explicit.
From-SVN: r231658
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r-- | gcc/hash-map.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h index 510353b..f61b7ab 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -111,8 +111,9 @@ public: CXX_MEM_STAT_INFO) : m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {} - hash_map (const hash_map &h, bool ggc = false, - bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO) + explicit hash_map (const hash_map &h, bool ggc = false, + bool gather_mem_stats = GATHER_STATISTICS + CXX_MEM_STAT_INFO) : m_table (h.m_table, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {} |