From: WeirdPat (weirdpat_at_[hidden])
Date: 2002-02-13 13:43:53
I would like to see this too... I am interested.
From: Geurt Vos [mailto:G.Vos_at_[hidden]]
Sent: Wednesday, February 13, 2002 7:18 AM
Subject: RE: [boost] properties in C++
> For instance, this straight-forward example looks great but
> it doesn't work:
> > boost::property<
> > boost::read<int,A,&A::get_it>,
> > boost::write<int,A,&A::set_it>
> > > value;
> &A::get_it can only be a constant expression if get_it is a
> 'static' member;
> but a static member cannot access a property value.
Why isn't &A::get_it (as non-static) a constant expression?
I have to admit I didn't look it up in the standard, but when
I find that every real C++ compiler(*) eats it, I am not tempted
to look it up.
*) this time "real C++ compilers" stands for:
Borland C++ 5.5.1
GCC 2.95.3 - 3.0.3
Intel C++ 5.0
Comeau C/C++ 184.108.40.206
Info: http://www.boost.org Send unsubscribe requests to:
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk