Opened 8 years ago

Closed 7 years ago

#11221 closed Bugs (duplicate)

intrusive/pointer_traits.hpp fails to compile with C++98

Reported by: Marc Mondesir <marcm@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.58.0 Severity: Showstopper
Keywords: Cc:

Description

boost/thread.hpp eventually includes boost/intrusive/pointer_traits.hpp. This gives compile errors, eg: /Source/SmartSound_109/0_SDK/Cross/boost/include/boost/intrusive/pointer_traits.hpp:36:1: Use of undeclared identifier 'check'

The error depends on a compile setting, (Project settings): Apple LLVM 6.0 - Language - C++

C++ Language Dialect

(set to) C++ 98 [std=c++98]

This is on Mac OS 10.9 with Xcode 6.2. I attached a sample project that fails to compile by simply including boost/thread.hpp in main.mm.

Change History (2)

comment:1 by Marc Mondesir <marcm@…>, 8 years ago

Sorry, duplicate of #11222. Browser hung and it double-submitted when I reloaded page. Please delete this one.

comment:2 by Ion Gaztañaga, 7 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.