|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2004-12-02 21:02:10
On Dec 2, 2004, at 5:50 PM, Pavel Vozenilek wrote:
>
> "Jonathan Turkanis" wrote:
>
>> Certain compilers provide special information about
>> types that can't be queried in std C++. The type traits
>> library uses this, where possible, but always
>> provides a conservative fallback answer.
>>
> OT: do you know any overview what compilers
> provide what kind of info?
>
> I cannot locate much in Type Traits.
Metrowerks has provided:
Metrowerks::has_trivial_copy_ctor<T>::value
for a year or two now (depending on platform). Some of the STL
containers use this information for optimizations. The implementation
of this trait is tied to the Metrowerks compiler in a non-standard-C++
fashion (e.g. a compiler intrinsic).
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk