Value type of map need not be default copyable

Marc Glisse marc.glisse@inria.fr
Sat Aug 11 13:47:00 GMT 2012


On Sat, 11 Aug 2012, François Dumont wrote:

>    Your remark on using std::move rather than std::forward Marc made sens 
> but didn't work. I don't understand why but the new test is showing that 
> std::forward works. If anyone can explain why std::move doesn't work I am 
> interested.

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.

-- 
Marc Glisse



More information about the Gcc-patches mailing list