Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-01-27 06:46:47

>I've been digging through the type_traits package to find how various
>hacks were done to support compilers like MSVC++, and I noticed a
>simplification that could be made to the library. The is_const struct
>uses a static member in order to get a pointer of the appropriate type to
>pass to its helper function. This could be done with a cast of a null
>pointer instead:

Thanks, however, note that that implementation will not compile if T is a
reference type...

- John Maddock

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