c++ g++ & boost, token "("之前缺少二元运算符

标签 c++ boost compiler-errors g++

g++ 提示的代码行是:

#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205))

我不明白为什么它在这里提示二元运算符,这是 g++ 还是 boost 错误?

最佳答案

如果 BOOST_WORKAROUND 未定义,您将收到该错误,因此我猜您使用的宏实际上并未包含任何 Boost header 。这显然行不通。

通常最安全的做法是假设它不是世界上使用最广泛的编译器和库中的一个错误,而您只是做错了什么。

关于c++ g++ & boost, token "("之前缺少二元运算符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11856889/

相关文章:

c++ - boost 获取锁失败

c - #定义错误: expected declaration specifiers or '...' before '(' token

compiler-errors - 餐厅计费程序连续出现错误

c - undefined reference '_method'

c++ - 如何连接两个 boost::asio::streambuf 的?

c# - 简单 3d 应用程序的最简单方法

c++ - 硬编码快捷方式

c++ - 使用 boost::spirit::x3 从 std::string 解析为 boost::string_view

c++ - 非类型模板参数 [Bool 运算符重载]

c++ - 使用 boost::swap 交换原始指针?