From: rwgk (rwgk_at_[hidden])
Date: 2002-01-10 13:31:32
--- In boost_at_y..., nbecker_at_f... wrote:
> >>>>> "rwgk" == rwgk <rwgk_at_y...> writes:
> rwgk> std::complex
> rwgk> no portable way of viewing std::complex<T> as an array
of two T
> Sounds like you want an iterator adaptor.
I find that for numerics complicated iterators can
quickly become a burden. (I was glad to see that multi_array
exposes element* in the interface.)
If std::complex was simply derived from boost::array<T, 2>,
portable conversions would be immediately possible, and you
could still provide iterators where they make sense.
To put it in more general terms: encapsulation is a great
idea, but can backfire if overused (as in std::complex, IMO).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk