]> granicus.if.org Git - clang/commitdiff
Unbreak the MSVC build
authorFrancois Pichet <pichet2000@gmail.com>
Fri, 18 Feb 2011 01:25:16 +0000 (01:25 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Fri, 18 Feb 2011 01:25:16 +0000 (01:25 +0000)
std::make_pair is unreliable under MSVC 2010.

Ref: http://stackoverflow.com/questions/2691680/why-does-visual-studio-2010-throw-this-error-with-boost-1-42-0

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

include/clang/StaticAnalyzer/Core/CheckerManager.h

index 1efc1ae352c6d9ff2ac79635eff157adb316a814..65c8b80aa2a8afe400cb8f8e3407669939a8e93a 100644 (file)
@@ -40,7 +40,7 @@ public:
   template <typename CHECKER>
   void registerChecker() {
     CHECKER *checker = new CHECKER();
-    Checkers.push_back(std::make_pair(checker, destruct<CHECKER>));
+    Checkers.push_back(std::pair<CheckerRef, Dtor>(checker, destruct<CHECKER>));
     CHECKER::_register(checker, *this);
   }