From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-02-01 09:07:35
on 2/1/00 2:17 AM, Aleksey Gurtovoy at alexy_at_[hidden] wrote:
> Opps.. I've misunderstood you - I thought you suggest
> 'boost::geometry2d::make_point' to be a substitute for both the constructor
> and for the conversion operator - in such the case it can be used like this:
> | typedef boost::geometry2d::point<long> point;
> | point p1;
> | POINT p2( make_point<POINT>( p1 ) ); // as a conversion operator
> | point p3( make_point<point>( p2 ) ); // as a constructor
> Does it make sense for you, Dave?
I guess so, but the 2nd usage will need qualification. Koenig lookup can't
help you there.
I just had a kooky idea. We could get Koenig lookup to work even on
broken-a**ed platforms like MSVC if we used operator overloading.
what if you wrote:
point p3 = point() << p2;
This is a 'fill' operator. Is this usage just too darned idiomatic and
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk