|
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
http://ourworld.compuserve.com/homepages/john_maddock/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk