Value type of map need not be default copyable

Marc Glisse marc.glisse@inria.fr
Sun Aug 12 12:02:00 GMT 2012


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



More information about the Libstdc++ mailing list