psp-g++ 无法编译 <deque>?



zeas
2010-03-25 20:29:32

g++的出错信息:
cpp_type_traits.h:111: error: expected primary-expression before 'unsigned'
cpp_type_traits.h:111: error: expected `}' before 'unsigned'
cpp_type_traits.h:111: error: type '_Sp' is not derived from type 'std::__traitor<_Sp, _Tp>'

cpp_type_traits.h:
[code=cpp]
106: // N.B. The conversions to bool are needed due to the issue
107: // explained in c++/19404.
108: template
109: struct __traitor
110: {
111: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };
112: typedef typename __truth_type<__value>::__type __type;
113: };
[/code]


c8656
2010-06-29 19:01:12

是不是在c++中用enum的实体域上的问题?
能不能贴出来你在哪里用上struct __traitor的


ttdasd123
2010-07-19 18:57:22

[b]以上两人的对话,完全看不懂...[/b]