Boost logo

Boost Users :

Subject: Re: [Boost-users] detect if a type has a size_t member
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-29 15:39:24


AMDG

Mathias Gaunard wrote:
> Because static const <integral type> = <some value> members are quite
> special beasts.
> Indeed, unlike other static members, you can't take their address,
> since they don't exist in memory but only as compile-time constants.

Yes you can take the address of a static const integral type.
If you do, you are required to have a namespace scope
definition, just like an ordinary member, but failure to
do so, can only cause a linker error. It won't affect the
compiler.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net