Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-10-16 08:29:29


Aleksey Gurtovoy <agurtovoy_at_[hidden]> writes:

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

Sounds great to me.

-Dave

-- 
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com

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