$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-14 10:07:33
From: "Andrei Alexandrescu" <andrewalex_at_[hidden]>
> From: "Beman Dawes" <bdawes_at_[hidden]>
> > Be careful. There is an interaction between operator[] and
> > ConversionPolicy. For an array, if the ConversionPolicy will cause
> > operator T* to be supplied, then operator[] should not be supplied. In
> > other words, inter-policy communication is needed.
>
> Hmm, I guess in this particular case there's no harm in simply leaving
> operator[] in there, even if you do provide a conversion to pointer. The
> compiler will prefer it, which is a good thing because you have more
> control.
Sometimes having both operator[] and a conversion to a pointer creates
ambiguities, depending on the type of the index.
-- Peter Dimov Multi Media Ltd.