This code fails to compile:
unordered_map<char, int[4]> inv = {
{ 'a', {{0,0,1,0}} }
}
What's the proper way to initialize this int array when passed as a type argument?
I've tried: int[], array<int,4> but they all give the error:
no instance of constructor "std::unordered_map<_Kty, _Ty, _Hasher,
_Keyeq, _Alloc>::unordered_map [with _Kty=char, _Ty=std::pair<Cell *, int []>, _Hasher=std::hash<char>, _Keyeq=std::equal_to<char>,
_Alloc=std::allocator<std::pair<const char, std::pair<Cell *, int []>>>]" matches the argument list
unordered_mapis he using? He may have implemented his own :)