Boost logo

Geometry :

Subject: [geometry] Use same object as input and output parameter?
From: Volker Schöch (vschoech_at_[hidden])
Date: 2012-02-07 13:06:32



I would like to use algorithms like intersection or difference to modify objects in-place. I cannot find any comment in the documentation whether it is legitimate to provide one of the input parameters as output parameter to these algorithms. Even if it would work with today's implementation, it would be helpful to have confirmation that this is not going to change in the future. If it is not allowed, I would have to instantiate and then move an additional object, which I'd rather avoid.


Thank you.


Volker Schöch | vschoech_at_[hidden]
Senior Software Engineer
think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany | phone +49 30 666473-10 | US phone +1 800 891 8091
Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl

Geometry list run by mateusz at