Boost logo

Boost Users :

Subject: Re: [Boost-users] [units] subtract_typeof_helper<> help!
From: Terry Golubiewski (tjgolubi_at_[hidden])
Date: 2010-05-19 14:18:26


Here's my latest stab at a Vector implementation using boost geometry and
units libraries.
This seems like way too much work for way too little benefit.
Perhaps, boost::units should be used only as an interface tool.
Once you try to use aggregates like matrices and points, its use becomes
cumbersome.

terry

----- Original Message -----
From: "alfC" <alfredo.correa_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.user
To: <boost-users_at_[hidden]>
Sent: Wednesday, May 19, 2010 4:28 AM
Subject: Re: [units] subtract_typeof_helper<> help!

On May 17, 9:45 pm, "Terry Golubiewski" <tjgol..._at_[hidden]> wrote:
> I'm trying to use boost::geometry and boost::units together.
> For some reason boost::geometry doesn't represent the difference of two
> points as vectors.
> So, I'm making my own Vector class and defining Vector = Point - Point.
> The sample program below doesn't compile because I need to tell the units
> library about the special properties of point subtraction (I think).

please post your solution if you find one. I have a similar problem.

Alfredo




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net