std::array<std::pair<int, int>, 2> ids = { { 0, 1 }, { 1, 2 } };
VS2013错误:
错误C2440:'初始化':无法从'int'转换为'std :: pair'没有构造函数可以采用源类型,或构造函数重载解析是不明确的
我究竟做错了什么?
c++ c++11 std-pair list-initialization stdarray
c++ ×1
c++11 ×1
list-initialization ×1
std-pair ×1
stdarray ×1