
16 Feb
2012
16 Feb
'12
4:50 a.m.
[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