|
|
我在编译KlayGE引擎
这个引擎用到boost库
我已经编译4.1版本boost库了
在编译OPENGL 的时候 出现
>f:\游戏引擎\klayge\klayge_3_6_0\plugins\src\render\opengl\oglshaderobject.cpp(51) : error C2228: left of '.item0' must have class/struct/union
1>f:\游戏引擎\klayge\klayge_3_6_0\plugins\src\render\opengl\oglshaderobject.cpp(51) : error C2893: Failed to specialize function template 'disable_if<is_function<T>::type,boost::type_of::sizer<encode_type<V,T>::type>>::type boost::type_of::encode(const T &)'
1> With the following template arguments:
1> 'boost::type_of::vector0<>'
1> 'KlayGE::OGLShaderObject::parameter_descs_t'
1>f:\游戏引擎\klayge\klayge_3_6_0\plugins\src\render\opengl\oglshaderobject.cpp(51) : error C2893: Failed to specialize function template 'enable_if<is_function<T>::type,boost::type_of::sizer<encode_type<V,T>::type>>::type boost::type_of::encode(T &)'
1> With the following template arguments:
1> 'boost::type_of::vector0<>'
1> 'KlayGE::OGLShaderObject::parameter_descs_t'
这样的编译问题,请问我的boost库哪里设置 存在问题呢?
错误制定代码是BOOST_FOREACH 这个宏。
BOOST_FOREACH(BOOST_TYPEOF(param_descs_)::reference desc, param_descs_)
谢谢 |
|