
9 Apr
2005
9 Apr
'05
11:21 p.m.
Stefan Strasser wrote:
Hi,
I'd like to know if there is interest in developing a small library for inclusion in boost to emulate properties, something like:
struct A{ void SetVar(int a){ cerr << "set " << a << endl; } int GetVar() const{ cerr << "get" << endl; return 0; } BOOST_PROPERTY(A,int,Var,SetVar,GetVar); };
A a; a.Var=3; //calls SetVar
You might like to look at this thread: http://lists.boost.org/MailArchives/boost/msg74302.php Jonathan