Add an explicit keyword. Thanks Chris!
authorDan Gohman <gohman@apple.com>
Fri, 29 Jun 2007 22:16:25 +0000 (22:16 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 29 Jun 2007 22:16:25 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37819 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index bb8cef4ce8a3c86ec505a25bf7950a3afcbd7dc3..876ca27fec72e62d1df8fd00e3ede1896046228c 100644 (file)
@@ -442,7 +442,7 @@ public:
   SmallVector() : SmallVectorImpl<T>(NumTsAvailable) {
   }
   
-  SmallVector(unsigned Size, const T &Value = T())
+  explicit SmallVector(unsigned Size, const T &Value = T())
     : SmallVectorImpl<T>(NumTsAvailable) {
     this->reserve(Size);
     while (Size--)