Part: Geometry extensions set interface
======================================= unique_ptr is a move only type. Therefore it may only take an rvalue. It does not make sense a pass by value for move only types (Item 41).
This commit is contained in:
@@ -288,7 +288,7 @@ const std::weak_ptr<GeometryExtension> Geometry::getExtension(Base::Type type) c
|
||||
throw Base::ValueError("No geometry extension of the requested type.");
|
||||
}
|
||||
|
||||
void Geometry::setExtension(std::unique_ptr<GeometryExtension> geo)
|
||||
void Geometry::setExtension(std::unique_ptr<GeometryExtension> && geo)
|
||||
{
|
||||
bool hasext=false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user