我正在关注 boost::spirit 的快速入门指南,当我包含以下内容时收到编译器警告:“此标头已弃用。请使用:boost/spirit/include/classic_core.hpp” 我应该担心这个吗?
(快速入门指南:http ://spirit.sourceforge.net/distrib/spirit_1_8_5/libs/spirit/doc/quick_start.html ,我试图在这里编译的程序的完整源代码:http://spirit.sourceforge。 net/distrib/spirit_1_8_5/libs/spirit/example/fundamental/number_list.cpp)
编辑:此外,当我尝试使用推荐的 classic_core.hpp 和 classic_push_back_actor.hpp 头文件进行编译时,我收到以下编译器错误:
test7.cpp: In function 'bool parse_numbers(const char*, __gnu_debug_def::vector<double, std::allocator<double> >&)':
test7.cpp:18: error: 'real_p' was not declared in this scope
test7.cpp:18: error: 'push_back_a' was not declared in this scope
test7.cpp:23: error: 'space_p' was not declared in this scope
test7.cpp:23: error: 'parse' was not declared in this scope