
30 Aug
2009
30 Aug
'09
12:15 a.m.
Simonson, Lucanus J wrote:
I almost forgot, there is actually a better answer to your question. The operators in the operators namespace are an optional feature of the library. You can instead use the polygon_set_data objects to perform explicit conversions and use the member operators of the polygon_set_data classes.
polygon_set_data<int>(some_polygon) | polygon_set_data<int>(some_rectangle);
Since operator| is in this case a member function it is found first though ADL.
Except this is going to copy some_polygon and some_rectangle to initialize the polygon_set_data, right?