Opened 6 years ago
Closed 6 years ago
#12425 closed Bugs (fixed)
stdlib/libstdcpp3.hpp incorrectly configured for Oracle Developer Studio 12.5 (__SUNPRO)
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
1) The following macros in boost/config/stdlib/libstdcpp3.hpp, are incorrectly configured for Oracle Developer Studio 12.5.
261 Headers not present on Solaris with the Oracle compiler: 262 #if defined(SUNPRO_CC) 263 #define BOOST_NO_CXX11_HDR_FUTURE 264 #define BOOST_NO_CXX11_HDR_FORWARD_LIST 265 #define BOOST_NO_CXX11_HDR_ATOMIC 266 shared_ptr is present, but is not convertible to bool 267 which causes all kinds of problems especially in Boost.Thread 268 but probably elsewhere as well. 269 #define BOOST_NO_CXX11_SMART_PTR 270 #endif
The headers are present in Oracle Developer Studio 12.5.
2) BOOST_LIBSTDCXX_VERSION
149 #if defined(SUNPRO_CC) && (SUNPRO_CC >= 0x5130) && (cplusplus >= 201103L) 150 151 Oracle Solaris compiler uses it's own verison of libstdc++ but doesn't 152 set GNUC 153 154 #define BOOST_LIBSTDCXX_VERSION 40800 155 #endif
Line 154 should be #define BOOST_LIBSTDCXX_VERSION 50100
Fixed in https://github.com/boostorg/config/commit/a17bb6c8da531a0a5cba18cfb1f4c4071fc051e9, thanks!