[Bug libstdc++/60867] New: std::atomic> should fail to compile since unique_ptr is not trivial to copy

2014-04-16 Thread kjell.hedstrom at logrhythm dot com
ity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: kjell.hedstrom at logrhythm dot com Created attachment 32621 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32621&action=edit main.ii compiled with: g+

[Bug libstdc++/60867] std::atomic> should fail to compile since unique_ptr is not trivial to copy

2014-04-17 Thread kjell.hedstrom at logrhythm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60867 --- Comment #2 from Kjell Hedstrom --- Sounds good. >> the error is in your code not the library Yes. Code like that is obviously faulty. I am happy that you are considering putting in a static_assert. From a coders perspective I find it very h