Boost logo

Boost Users :

Subject: [Boost-users] [geometry] how to using UDT
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2014-06-13 14:11:30


Hello,

I try to catch some failures using an own user defined type (UDT), but
it doesn't compile e.g. it's hardcoded to use std::sqrt:

boost_1_55_0/boost/geometry/strategies/cartesian/distance_pythagoras.hpp:165:13:
error: no matching function for call to 'sqrt(core::my_type<double>)'

further, is there a way to adapt templated points?

BOOST_GEOMETRY_REGISTER_POINT_2D(point_type,
point_type::coordiante_type, bg::cs::cartesian, x, y)

got errrors.

Thanks,
Olaf




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