[C++-sig] static data members
David Abrahams
dave at boost-consulting.com
Tue Oct 8 20:52:19 CEST 2002
Francois Ostiguy <ostiguy at fnal.gov> writes:
> Quick question -
>
> How to I expose static class data members ? Can you supply a short
> example ?
object x_class
= class_<X>("X")
.def( ... )
...
;
x_class.attr("fu") = X::fu;
x_class.attr("bar") = X::bar;
...
HTH,
--
David Abrahams * Boost Consulting
dave at boost-consulting.com * http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list