我已将std::map
更改为std::unordered_map
并出现以下错误:
/usr/include/c++/4.8.3/bits/hashtable_policy.h(830): error: an incomplete class type is not allowed
bool __use_ebo = !__is_final(_Tp) && __is_empty(_Tp)>
processing of template argument list for "std::__detail::_Hashtable_ebo_helper" based on template arguments <1, std::hash<SessionID>> at line 1073
SessionID类在instatiation时声明。有什么问题?