
3 Dec
2004
3 Dec
'04
3:58 a.m.
The documentation for has_trivial_constructor has some cryptic note: Without some (as yet unspecified) help from the compiler, has_trivial_constructor will never report that a class or struct has a trivial constructor; this is always safe, if possibly sub-optimal.
It will get the right answer for: Intrinsic types, and arrays thereof. Enums and arrays thereof. It requires compiler help for: User defined types (classes). That help is likely to become much more widespread "real soon now". John.