Boost logo

Boost :

From: Thomas Matelich (sosedada_at_[hidden])
Date: 2000-05-31 10:37:26


Kevlin Henney wrote:

> In message <39351571.28284088_at_[hidden]>, Thomas Matelich
> <sosedada_at_[hidden]> writes
>
> Whilst this is all true, it answers the wrong question: it's not so much
> a case of "what is mutable?" as "what is a mutable reference?". It's an
> interesting concept, but not one that either makes sense or is legal
> [7.1.1 para 8]:
>
> "The mutable specifier can be applied only to names of class data
> members (9.2) and cannot be applied to names declared const or static,
> and cannot be applied to reference members."

DOH! I had no idea you couldn't do that. But it still doesn't make sense to me,
why can't the reference be mutable? Its not like you're trying to reseat the
reference.

--
Thomas O Matelich
Senior Software Designer
Zetec, Inc.
sosedada_at_[hidden]
tmatelich_at_[hidden]

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