Modify

Opened 7 years ago

Closed 7 years ago

#4112 closed Bugs (fixed)

[smart_ptr] BOOST_HAS_RVALUE_REFS vs BOOST_NO_RVALUE_REFERENCES

Reported by: rwebb <richard.webb@…> Owned by: pdimov
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).

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by pdimov

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 Changed 7 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from new to closed

(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.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain pdimov.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.