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: rwebb <richard.webb@…> 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 Peter Dimov, 13 years ago

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.

comment:2 by John Maddock, 13 years ago

Resolution: fixed
Status: newclosed

(In [61453]) Update some of the C++0x tests so they don't catch "fake" implementations. Update config for VC10 accordingly. Normalise use of BOOST_HAS_RVALUE_REFS - fixes #4112.

Note: See TracTickets for help on using tickets.