[C++-sig] static data members

David Abrahams dave at boost-consulting.com
Sun Apr 6 21:06:36 CEST 2003


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.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list