我想知道libc ++是否支持make_pair或具有我真正不知道的相同功能。
我的项目之前使用过libstdc ++,但在更新内核之后,它采用了libc ++而不是libstdc ++。并且make_pair会出错。
../../qb/chrome/browser/wup/stat/wup_stat/wup_stat_8075.cc:333:1: error: no matching function for call to 'make_pair'
IMPLEMENT_TYPE(Int, int)
^~~~~~~~~~~~~~~~~~~~~~~~
../../qb/chrome/browser/wup/stat/wup_stat/wup_stat_8075.cc:259:22: note: expanded from macro 'IMPLEMENT_TYPE'
(m_map##TYPE).insert(std::make_pair<RecordType8075, WupStat8075ReportItem<TYPE>>(item.itemKey, item));\
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/melody5417/QB3972/trunk/browser/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/utility:493:1: note: candidate function [with _T1 = RecordType8075, _T2 = (anonymous namespace)::WupStat8075ReportItem<int>] not viable: no known conversion from 'RecordType8075' to 'RecordType8075 &&' for 1st argument
make_pair(_T1&& __t1, _T2&& __t2)
^
../../qb/chrome/browser/wup/stat/wup_stat/wup_stat_8075.cc:334:1: error: no matching function for call to 'make_pair'
IMPLEMENT_TYPE(String, std::string)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../qb/chrome/browser/wup/stat/wup_stat/wup_stat_8075.cc:259:22: note: expanded from macro 'IMPLEMENT_TYPE'
(m_map##TYPE).insert(std::make_pair<RecordType8075, WupStat8075ReportItem<TYPE>>(item.itemKey, item));\
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/melody5417/QB3972/trunk/browser/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/utility:493:1: note: candidate function [with _T1 = RecordType8075, _T2 = (anonymous namespace)::WupStat8075ReportItem<std::__1::basic_string<char> >] not viable: no known conversion from 'RecordType8075' to 'RecordType8075 &&' for 1st argument
make_pair(_T1&& __t1, _T2&& __t2)
非常感谢。