【发布时间】:2016-03-18 19:24:27
【问题描述】:
我正在尝试使用英特尔 C++ 编译器编译以下示例 http://www.boost.org/doc/libs/1_60_0/libs/spirit/example/qi/compiler_tutorial/calc3.cpp。
编译失败,我得到 300 kB 的错误。前几个是:
boost/fusion/container/vector/vector.hpp(69): error: namespace "boost::fusion::vector_detail::result_of" has no member "value_at_c"
: boost::is_convertible<Sequence, typename result_of::value_at_c<This, 0>::type>
^
boost/fusion/container/vector/vector.hpp(69): error: expected a ">"
: boost::is_convertible<Sequence, typename result_of::value_at_c<This, 0>::type>
^
boost/fusion/container/vector/vector.hpp(69): error: not a class or struct name
: boost::is_convertible<Sequence, typename result_of::value_at_c<This, 0>::type>
^
命令行是
icl.exe /I<path-to-boost> calc3.cpp
Boost 版本:1.60,编译器版本:15.0.6.285 Build 20151119
虽然我能够通过更改第 69 行来修复错误
struct is_convertible_to_first
: boost::is_convertible<Sequence, typename result_of::value_at_c<This, 0>::type>
{};
到
struct is_convertible_to_first
: boost::is_convertible<Sequence, typename boost::fusion::result_of::value_at_c<This, 0>::type>
{};
, 我还是很好奇为什么会出现问题?
【问题讨论】: