Title
Type property predicates
Status
resolved
Section
[meta.unary.prop]
Submitter
Jason Merrill

Created on 2009-07-16.00:00:00 last changed 170 months ago

Messages

Date: 2010-11-20.00:05:46

[ 2009-10 Santa Cruz: ]

NAD EditorialResolved. Solved by N2984.

Date: 2010-10-21.18:28:33

[ Addressed in N2947. ]

Date: 2010-10-21.18:28:33

[ See the thread starting with c++std-lib-24420 for further discussion. ]

Date: 2009-07-16.00:00:00

I've been implementing compiler support for is_standard_layout, and noticed a few nits about [meta.unary.prop]:

  1. There's no trait for "trivially copyable type", which is now the property that lets you do bitwise copying of a type, and therefore seems useful to be able to query. has_trivial_assign && has_trivial_copy_constructor && has_trivial_destructor is similar, but not identical, specifically with respect to const types.
  2. has_trivial_copy_constructor and has_trivial_assign lack the "or an array of such a class type" language that most other traits in that section, including has_nothrow_copy_constructor and has_nothrow_assign, have; this seems like an oversight.
History
Date User Action Args
2010-11-19 19:04:45adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg1017
2010-10-21 18:28:33adminsetmessages: + msg1016
2010-10-21 18:28:33adminsetmessages: + msg1015
2009-07-16 00:00:00admincreate