$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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