Boost logo

Boost :

Subject: Re: [boost] Updated boost::base_from_member for C++2011
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2012-02-15 23:50:52


[Daryle Walker]
> I asked about this on StackOverflow, and we've discovered a new C++ gotcha.  If we have a universal constructor:
> struct MyType{    template <typename ...Args>    MyType( Args&& ...x );};
> Matches every kind of argument except two:
> * anything with "volatile"
> * a "const &&"

This is not correct - volatiles and const rvalues can be perfectly forwarded.

STL


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk