
13 Nov
2009
13 Nov
'09
11:06 p.m.
Am Friday 13 November 2009 23:14:25 schrieb Bruno Lalande:
GEOMETRY_REGISTER_POINT_2D(my_point, double, cs::cartesian, x(), y())
Just to be sure, what does it give with your approach?
struct my_point{ typedef point_tag tag; typedef mpl::int_<2> dimension; typedef double coordinate_type; typedef cs::cartesian coordinate_system; //accessors here, haven't lookup up how those are implemented }; I do consider this better than the macro, even in this case. with 3d points, we are up to a macro with 8 arguments. note that you can still use traits, see my previous email.