Commit 0b94fc3f authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fix-lifetime-issue' into 'master'

Fix lifetime issues for Face::halfedges(), Cell::halffaces().

See merge request !44
parents a2521630 ec489971
Pipeline #8648 passed with stage
in 5 minutes and 40 seconds
......@@ -97,10 +97,15 @@ public:
virtual ~OpenVolumeMeshFace() {
}
const std::vector<HalfEdgeHandle>& halfedges() const {
const std::vector<HalfEdgeHandle>& halfedges() const & {
return halfedges_;
}
const std::vector<HalfEdgeHandle>& halfedges() const && = delete;
std::vector<HalfEdgeHandle> halfedges() && {
return std::move(halfedges_);
}
protected:
void set_halfedges(const std::vector<HalfEdgeHandle>& _halfedges) {
......@@ -126,10 +131,15 @@ public:
virtual ~OpenVolumeMeshCell() {
}
const std::vector<HalfFaceHandle>& halffaces() const {
const std::vector<HalfFaceHandle>& halffaces() const & {
return halffaces_;
}
const std::vector<HalfFaceHandle>& halffaces() const && = delete;
std::vector<HalfFaceHandle> halffaces() && {
return std::move(halffaces_);
}
protected:
void set_halffaces(const std::vector<HalfFaceHandle>& _halffaces) {
......
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