Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-04-09 18:21:07


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk