This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [c++0x] _Tuple_impl and typename reference_wrapper<T>::type&&


Pedro LamarÃo:

...

class A {
public:

       template <typename T>
       explicit
       A (typename std::remove_reference<T>::type&&) { }

};

I think that this constructor is uncallable. remove_reference<T>::type&& is a nondeduced context, and there is no way to supply T explicitly.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]