Boost logo

Boost :

Subject: Re: [boost] [property] interest in C# like properties for C++?
From: Matthew Chambers (matthew.chambers_at_[hidden])
Date: 2009-10-19 15:56:33


Peder Holt wrote:
> It currently support:
> Read/Write properties
> Read properties
> Write properties
>
> Not supported yet:
> indexed properties
> operator overloads for properties, e.g. my_class.property*my_class.property
> will currently fail.
>
I would love to see C++ properties! It may be syntactic sugar but I
happen to have a sweet tooth. Will parenthesizing the properties be
enough to use them with const operators? I tried to play with your code,
but it won't compile on codepad: http://codepad.org/MD5knINj

Thanks,
-Matt


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