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