[cfe-commits] r125811 - /cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h

Francois Pichet pichet2000 at gmail.com
Thu Feb 17 17:25:16 PST 2011


Author: fpichet
Date: Thu Feb 17 19:25:16 2011
New Revision: 125811

URL: http://llvm.org/viewvc/llvm-project?rev=125811&view=rev
Log:
Unbreak the MSVC build
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

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h?rev=125811&r1=125810&r2=125811&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h Thu Feb 17 19:25:16 2011
@@ -40,7 +40,7 @@
   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);
   }
 





More information about the cfe-commits mailing list