Subject: Re: [boost] [property] interest in C# like properties for C++?
From: Peder Holt (peder.holt_at_[hidden])
Date: 2009-10-20 03:02:10
2009/10/19 Matthew Chambers <matthew.chambers_at_[hidden]>
> 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:
Can you try it now? I think the issue has been solved.
Currently, if you have a property X of type double, you have to write
double(X)*double(X) to make it work, but it shouldn't be too difficult to
get proper operator support into place.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk