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
llvm-svn: 125811
This commit is contained in:
Francois Pichet 2011-02-18 01:25:16 +00:00
parent 0f79084117
commit f9e7f09c84
1 changed files with 1 additions and 1 deletions

View 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);
}