[C++-sig] static data members
Nicodemus
nicodemus at globalite.com.br
Sun Apr 6 22:50:18 CEST 2003
David Abrahams wrote:
>I implemented and checked in static data member support a few days
>ago, but due to poor bandwidth couldn't announce it. You can now use
>def_readonly and def_readwrite with pointers and references to
>ordinary objects (as opposed to data members). The expression &T::x
>where x is a static data member of T is a regular pointer, in case
>you wondered.
>
>Please see libs/python/test/data_members.[cpp/py] for examples.
>Documentation to follow.
>
>
Nice!
I updated pyste to generate code that uses this new facility (version
0.7.0).
Great work Dave,
Nicodemus.
More information about the Cplusplus-sig
mailing list