I am trying to use a multimap with an integer key and values made of array of integers with 2 elements.
typedef std::multimap<int,int[2]> reverseHeightMap;
reverseHeightMap container;
When I try to add values like this:
container.insert( std::pair<int,int[2]>(5,{1,2}) );
I get:
error C2143: syntax error: missing ')' before '{'
I can't figure if I am failing at defining the data structure or inserting the value, or both. Thanks in advance for the help :)