Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-12-03 05:58:53


> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk