Commit 3b8a93dd authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Fix danging reference bug caused by halfedge().from_vertex().

We should not return references to members of possible xvalues.
Handle is lightweight enough that copying is not a problem.
parent 59c40b49
Pipeline #10590 passed with stage
in 4 minutes and 46 seconds
......@@ -61,10 +61,10 @@ public:
virtual ~OpenVolumeMeshEdge() {
const VertexHandle& from_vertex() const {
const VertexHandle from_vertex() const {
return fromVertex_;
const VertexHandle& to_vertex() const {
const VertexHandle to_vertex() const {
return toVertex_;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment