diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-02-18 01:25:16 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-02-18 01:25:16 +0000 |
commit | 380ebecb32993bf0426e25519eb78d7816b74b12 (patch) | |
tree | 5984116874019b50d24b7f0b322e1e2c3f2c6056 /include/clang/StaticAnalyzer/Core/CheckerManager.h | |
parent | 2fda14afb1e3234aad9a15e83c8ab5285fee35a4 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/CheckerManager.h')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/CheckerManager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/StaticAnalyzer/Core/CheckerManager.h b/include/clang/StaticAnalyzer/Core/CheckerManager.h index 1efc1ae352..65c8b80aa2 100644 --- a/include/clang/StaticAnalyzer/Core/CheckerManager.h +++ b/include/clang/StaticAnalyzer/Core/CheckerManager.h @@ -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); } |