Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
g++ 抱怨的代码行是:
#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205))
我不明白为什么它在这里抱怨二元运算符,这是 g++ 还是 boost 错误?
如果未定义,您将收到该错误BOOST_WORKAROUND,因此我猜您正在使用宏而实际上并未包含任何 Boost 标头。这显然行不通。
BOOST_WORKAROUND
通常最安全的做法是假设它不是世界上使用最广泛的编译器和使用最广泛的库之一中的错误,而您只是做错了事。