Boost logo

Boost :

Subject: Re: [boost] [Review] GGL review starts today, November 5th
From: Stefan Strasser (strasser_at_[hidden])
Date: 2009-11-13 18:06:56

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at