Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-10-16 05:39:28

Here's what we say about "::boost::has_trivial_constructor<T>::value":

    "True if T has a trivial default constructor - that is T() is equivalent
to memset."

This "definition" of trivial constructor is very far from truth, IMO.
Consider, for instance, T == double or T== struct her { int i; };.

I suggest we just refer to the appropriate place in the standard (12.3
[class.ctor] para 3) instead of trying to make the the term more accessible

'has_trivial_copy', 'has_trivial_assign' and 'has_trivial_destructor'
documentation entries would benefit from references to the standard as well
(12.8p6, 12.8p11, and 12.4p3 correspondingly).


Boost list run by bdawes at, gregod at, cpdaniel at, john at