|
|
std::unordered_map<ExitDirection, RoomNumber> exits;
/Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits:1464:38: error: implicit instantiation of undefined template 'std::__1::hash<Room::ExitDirection>' : public integral_constant<bool, __is_empty(_Tp)> {}; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:383:18: note: in instantiation of template class 'std::__1::is_empty<std::__1::hash<Room::ExitDirection> >' requested here bool = is_empty<_Hash>::value && !__libcpp_is_final<_Hash>::value ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/unordered_map:765:13: note: in instantiation of default argument for '__unordered_map_hasher<Room::ExitDirection, std::__1::__hash_value_type<Room::ExitDirection, int>, std::__1::hash<Room::ExitDirection> >' required here typedef __unordered_map_hasher<key_type, __value_type, hasher> __hasher; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Room.h:36:8: note: in instantiation of template class 'std::__1::unordered_map<Room::ExitDirection, int, std::__1::hash<Room::ExitDirection>, std::__1::equal_to<Room::ExitDirection>, std::__1::allocator<std::__1::pair<const Room::ExitDirection, int> > >' requested here Exits exits; |
std::unordered_map<int, RoomNumber> exits;
std::unordered_map<const int, RoomNumber> exits;
|
|