Boost logo

Boost :

From: Brad King (brad.king_at_[hidden])
Date: 2002-02-14 10:12:47


On Wed, 13 Feb 2002, Karl Nelson wrote:

>
> Someone in this group must have been reading gtkmm code again.
>
> > >
> > > #define PROPERTY(c, t, n) \
> > > PropertyMaker< c, t >::Property<&c::Get##n, &c::Set##n> n
> > >
> > > template <typename Class, typename Data>
> > > struct PropertyMaker
> > > {
> > > template <Data (Class::*Get)() const, void (Class::*Set)(Data)>
> > > struct Property
> > > {
> > > Class* m_Class;
> > > operator Data () const { return (m_Class->*Get)(); }
> > > void operator=(Data data) const { (m_Class->*Set)(data); }
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What is gtkmm? I've honestly never read its code, and this code I posted
was 100% origianlly written by me.

-Brad


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