Modify

Ticket #4112 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

[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

Change History

comment:1 Changed 4 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 4 years ago by johnmaddock

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

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.