Boost logo

Boost :

Subject: Re: [boost] [property] interest in C# like properties for C++?
From: Sid Sacek (ssacek_at_[hidden])
Date: 2009-10-22 19:30:39


From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Olaf van der Spek

On Thu, Oct 22, 2009 at 10:43 PM, Sid Sacek <ssacek_at_[hidden]> wrote:
> >
> > What's a "Reference Property" and how would you use it in code?
> >
> > An example please...
>
> Something like
>
> class C;
>
> class D
> {
> public:
> C& c;
> };
>
> That'd be the non-property way.

Ummmm.... C++ references are irrelevant when you're already using properties...

By default, properties behave just like references, unless you can show me some other usage that's not obvious.

-Sid Sacek


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