2016-06-07 189 views
0

我已经改变了std::mapstd::unordered_map,得到了以下错误: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点声明。问题是什么?

回答