diff --git a/Nef_3/include/CGAL/Nef_3/Bounding_box_3.h b/Nef_3/include/CGAL/Nef_3/Bounding_box_3.h index ebbcd8b4a74..b3e3e24e5d6 100644 --- a/Nef_3/include/CGAL/Nef_3/Bounding_box_3.h +++ b/Nef_3/include/CGAL/Nef_3/Bounding_box_3.h @@ -72,7 +72,7 @@ public: Base::extend(q); else { initialized = true; - (Base) *this = Base(q,q); + (Base&) *this = Base(q,q); } } diff --git a/Nef_3/include/CGAL/Nef_3/SNC_indexed_items.h b/Nef_3/include/CGAL/Nef_3/SNC_indexed_items.h index f493c6d5c84..3dcbdbd4187 100644 --- a/Nef_3/include/CGAL/Nef_3/SNC_indexed_items.h +++ b/Nef_3/include/CGAL/Nef_3/SNC_indexed_items.h @@ -105,7 +105,7 @@ class SNC_indexed_items { : Base(sl), index(0), ifacet(sl.ifacet), init_ifacet(sl.init_ifacet) {} SHalfloop& operator=(const SHalfloop& sl) { - (Base) *this = (Base) sl; + (Base&) *this = (Base) sl; index = sl.index; ifacet = sl.ifacet; init_ifacet = sl.init_ifacet; @@ -139,7 +139,7 @@ class SNC_indexed_items { : Base(se), index(se.index), index2(se.index2), ifacet(se.ifacet), init_ifacet(se.init_ifacet) {} SHalfedge& operator=(const SHalfedge& se) { - (Base) *this = (Base) se; + (Base&) *this = (Base) se; index = se.index; index2 = se.index2; ifacet = se.ifacet; @@ -177,7 +177,7 @@ class SNC_indexed_items { SVertex(Mark m) : Base(m), index(0) {} SVertex(const SVertex& sv) : Base(sv) { index = sv.index; } SVertex& operator=(const SVertex& sv) { - (Base) *this = (Base) sv; + (Base&) *this = (Base) sv; index = sv.index; return *this; }