Opened 13 years ago
Closed 13 years ago
#4112 closed Bugs (fixed)
[smart_ptr] BOOST_HAS_RVALUE_REFS vs BOOST_NO_RVALUE_REFERENCES
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | smart_ptr |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
The current version of smart_ptr enables its rvalue reference support based on the presence of BOOST_HAS_RVALUE_REFS. Should it be using BOOST_NO_RVALUE_REFERENCES instead?
This is important because the MSVC config header never defines BOOST_HAS_RVALUE_REFS, only BOOST_NO_RVALUE_REFERENCES (on versions before VC10).
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
To aid people who need to extract the minimal subset of Boost that allows them to use shared_ptr, the shared_ptr headers (aim to) support compilation with an empty boost/config.hpp. This unfortunately comes at odds with the recent decision to transition away from BOOST_HAS_* for C++0x features.