Skip to content
Snippets Groups Projects
Commit 64c3f8f4 authored by Oliver Sander's avatar Oliver Sander
Browse files

fix a bug in operator<. Patch by Christian Engwer

[[Imported from SVN: r6271]]
parent 403dbe1f
Branches
Tags
No related merge requests found
......@@ -288,13 +288,14 @@ namespace Dune {
/** \brief less-than operation for use with maps */
bool operator < (const GeometryType& other) const {
if (none)
return false;
if (other.none)
return true;
return ( ( dim_ < other.dim_ )
|| ( !( other.dim_ < dim_ )
&& ( topologyId_ < other.topologyId_ ) )
return ( ( none_ < other.none_ )
|| ( !( other.none_ < none_ )
&& ( ( dim_ < other.dim_ )
|| ( !( other.dim_ < dim_ )
&& ( topologyId_ < other.topologyId_ )
)
)
)
);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment