Subject: Re: [geometry] [Boost-users] how to using UDT
From: Barend Gehrels (barend_at_[hidden])
Date: 2014-06-13 16:48:53
Olaf Peter wrote On 13-6-2014 20:11:
> 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:
> error: no matching function for call to 'sqrt(core::my_type<double>)'
Indeed. We're currently fixing that.
> further, is there a way to adapt templated points?
> point_type::coordiante_type, bg::cs::cartesian, x, y)
Yes, it is possible but we don't have a macro for that. You can
specialize your traits (5 traits) manually. For templates that is often
convenient, to return the corresponding coordinate type.
See c07_custom_ring_pointer_example.cpp from the examples folder.
Geometry list run by mateusz at loskot.net