2016-06-07 49 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點聲明。問題是什麼?

回答