Boost logo

Boost :

From: rogeeff (rogeeff_at_[hidden])
Date: 2002-02-13 13:03:42


--- In boost_at_y..., "Fernando Cacciola" <fcacciola_at_g...> wrote:

> IMHO, the ONLY advantage of a 'property' in comparison with the
good old:
>
> int const& foo() const { return m_foo ; }
> int & foo() { return m_foo ; }
> int m_foo ;
>
> is that the user don't have to write the extra '()'.
>
> I don't think that a property facility could add that much
complexity just
> to allow syntactic sugar.
>
> Of course, I can be missing something and I'll be glad to know it.
>
> Fernando Cacciola
> Sierra s.r.l.
> fcacciola_at_g...
> www.gosierra.com

Mostly it helps developer not the user.

Gennadiy


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