Skip to content

Commit

Permalink
Add implementation of Geometry::operator=
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Nov 6, 2019
1 parent b56096b commit e28f690
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ Geometry::Geometry( Geometry const& other ) : validityFlag_( other.validityFlag_

}

Geometry& Geometry::operator=( const Geometry& other )
{
validityFlag_ = other.validityFlag_;
return *this;
}

bool Geometry::hasValidityFlag() const
{
return validityFlag_;
Expand Down
2 changes: 1 addition & 1 deletion src/Geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class SFCGAL_API Geometry {
protected:
Geometry();
Geometry( const Geometry& );
const Geometry& operator=( const Geometry& );
Geometry& operator=( const Geometry& other );

bool validityFlag_;
};
Expand Down

0 comments on commit e28f690

Please sign in to comment.