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: Value type of map need not be default copyable


On Sun, 12 Aug 2012, Jonathan Wakely wrote:

On 11 August 2012 14:47, Marc Glisse wrote:

What testcase failed? I just tried the 2.cc file you added with the patch, and replacing forward<key_type>(__k) with move(__k) compiled fine.

Shouldn't it be std::move(__k) to disable ADL though?

It is written std::forward, so replacing forward with move gives std::move ;-)


(OK, that was just luck, good remark)

--
Marc Glisse


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