Make StringMap's copy ctor non-explicit.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Apr 2012 09:04:57 +0000 (09:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Apr 2012 09:04:57 +0000 (09:04 +0000)
Without this gcc doesn't allow us to put a StringMap into a
std::map. Works with clang though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154737 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringMap.h

index 097418efc817966de8fb02504b0d16bfb2881bc3..b4497a276d0e58331f54b528dd9b0e6353f87336 100644 (file)
@@ -239,7 +239,7 @@ public:
   explicit StringMap(AllocatorTy A)
     : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
 
-  explicit StringMap(const StringMap &RHS)
+  StringMap(const StringMap &RHS)
     : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
     assert(RHS.empty() &&
            "Copy ctor from non-empty stringmap not implemented yet!");