std::atomic was trivial (which requires a trivially copied one), but no longer exists. See this answer for a detailed explanation of how and why this has changed.
This makes VC compatible and gcc and clang incompatible, at least in C ++ 17. Since this was considered a committee flaw, VC shows the desired behavior for C ++ 11 and C ++ 14.
For future reference, the corresponding defect DR # 1734 , you can see the implementation status for clang here . I am not aware of the equivalent status page for gcc.
Baum mit augen
source share