Boost logo

Boost Users :

Subject: Re: [Boost-users] make member functions (in)accessible
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-26 11:11:20


AMDG

Stefan Funck wrote:
> so I may do:
>
> A a;
> a.propA.get();
> a.propA.set(0.5);
> a.propB.get();
>
> but NOT:
>
> a.propB.set(1);
>
> because propB was defined with Writable=false. BUT, from within class A, I would
> like to do
>
> propB.set(1);
>
> because otherwise this property is useless. (How) can this be achieved (with boost)?
>

These two cases are indistinguishable.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net