Boost logo

Boost Users :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2004-12-04 10:30:54


Hi,

While using boost::iterator_facade wirh a class type as argument for
both the 'Reference' and the 'Value' template type parameter I noticed
that I can't access non-const members via operator->. *i is not const
and neither 'Value' nor 'Reference' are.

A naiv look at the source shows me that
operator_arrow_proxy::operator->() always returns 'T const *'.

Is this a bug or an intentional restriction ?

I'm using the current CVS version (just updated, head revision) and
tried to compile with GCC and MSVC.

Thanks for any help in advance,

Tobias


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