Opened 8 years ago

Closed 7 years ago

#3804 closed Feature Requests (fixed)

adapt rvalue references

Reported by: anonymous Owned by: johnmaddock
Milestone: Boost 1.43.0 Component: type_traits
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:


Boost.TypeTraits?, in particular the reference modification metafunctions, does not support rvalue references.

this assert fails with gcc 4.4/-std=c++0x: static_assert(std::is_same<boost::remove_reference<int&&>::type,int>::value,"");

In my opinion, add_lvalue_reference and add_rvalue_reference should be added to keep Boost.TypeTraits? conform to c++0x's type traits library (n3000/20.6)

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by johnmaddock

  • Status changed from new to assigned

comment:2 Changed 7 years ago by anonymous

This piece of code fails on VC10 as well:

#include <boost/type_traits/remove_const.hpp> int main() {

boost::remove_const<int&&>::type c;


remove_const.hpp(52): error C2528: 'abstract declarator' : pointer to reference is illegal ...

comment:3 Changed 7 years ago by johnmaddock

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

(In [63487]) Update docs to match code. Update type_traits.hpp. Completes fix for #3804. Fixes #3804.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.