
3 Dec
2004
3 Dec
'04
2:02 a.m.
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