
2 May
2008
2 May
'08
11:23 p.m.
Bruno wrote:
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. Thanks, Luke