From: Simonson, Lucanus J (lucanus.j.simonson_at_[hidden])
Date: 2008-05-02 19:23:44
>As pointed out by John, another advantage of compile-time access is
>the ability to have different types for each coordinate. It's
>something that has been asked for several times during recent
>discussions on this list. I was even wondering the other day if it
>wouldn't be better to not require any coordinate_type typedef and have
>the algorithms deducing by themselves the type of each coordinate by a
>BOOST_TYPEOF on the accessor.
Can you provide me with a code example of how to do this? I'm getting
really tired of writing typename point_traits<T>::coordinate_type over
and over and over again. I would greatly appreciate a better way.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk