diff --git a/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h b/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h index 664343620bf..2c162e7cc61 100644 --- a/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h +++ b/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h @@ -1224,8 +1224,8 @@ private: if(update_c3t3) { // Update status in c3t3 - if(surface != boost::none) - c3t3_.add_to_complex(facet, surface.get()); + if((bool)surface) + c3t3_.add_to_complex(facet, *surface); else c3t3_.remove_from_complex(facet); } @@ -1246,7 +1246,7 @@ private: } } - return surface; + return surface ? surface : Surface_patch(); } @@ -2054,7 +2054,7 @@ private: true); /* update surface centers */ // false means "do not update the c3t3" if ( c3t3_.is_in_complex(*fit) != (bool)sp || - ((bool)sp && !(c3t3_.surface_patch_index(*fit) == sp.get()) ) ) + ((bool)sp && !(c3t3_.surface_patch_index(*fit) == *sp) ) ) return false; }