7
我想用一个整数键和2个元素的整数数组构成的值使用多图。将数组值添加到std :: multimap
typedef std::multimap<int,int[2]> reverseHeightMap;
reverseHeightMap container;
当我尝试添加值是这样的:
container.insert(std::pair<int,int[2]>(5,{1,2}));
我得到:
error C2143: syntax error: missing ')' before '{'
如果我在定义数据结构或将发生故障的我想不通价值或两者兼而有之。在此先感谢帮助:)