Subject: Re: [geometry] volatile polygon
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-11-25 13:56:24
Adam Wulkiewicz wrote On 25-11-2013 13:13:
> Long Guo wrote:
>> Dear sir,
>> I have two threads using the same polygon.
>> One thread is modifying the polygon.
>> And I want the other thread to use the modified polygon,
>> so I need to define the polygon as volatile.
>> However, when I use *(volatile polygon*)&mypolygon,
>> I get some error as follows:
>> error: no type named type in struct
>> > >.
>> What's wrong with this usage?
> boost::geometry::dimension (probably as well as some other functions)
> isn't volatile-aware. Barend maybe we should use remove_volatile<> as
Sure, we've never handled this. We should probably add this, or add a
convenience meta-function doing all the removals necessary, and use that
(see also bare_type, which also removes a pointer, that is necessary for
point-types, but not for point-types).
Geometry list run by mateusz at loskot.net