[Bug libstdc++/52702] [C++11] std::is_trivially_destructible is missing

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Sun Apr 15 17:05:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52702

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-15 17:05:18 UTC ---
Maybe we can ask here Jason about std::is_trivially_copyable, which he didn't
do at once with std::is_trivial (maybe the concept didn't precisely exist at
the time, I don't remember).

Anyway, I see two options: either "exporting" just now from the front-end an
__is_trivially_copyable (just using trivially_copyable_p); or postpone the task
to when std::is_trivially_constructible and std::is_trivially_assignable will
be available, in turn requiring front-end support, but then useful for all the
missing std::is_trivial* things, if I understand correctly.

The former could make sense per se, could also be immediately exploited to
implement std::is_trivially_default_constructible. At some point, anyway, we'll
have to tackle std::is_trivially_constructible and std::is_trivially_assignable
(the former, in particular, with its variadic parameter, seems non-trivial to
me)



More information about the Gcc-bugs mailing list