From bbf6abff2807bbf1b93ca0dacb494f3f1c5a80f3 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Thu, 26 Feb 2009 10:48:53 +0000 Subject: [PATCH] (Base)*this=... seems to be illegal. Legal alternatives are: (Base&)*this=... *(Base*)this=... this->Base::operator=(...) I'll check the testsuite tomorrow to see if no compiler complains about this version. --- Nef_3/include/CGAL/Nef_3/Bounding_box_3.h | 2 +- Nef_3/include/CGAL/Nef_3/SNC_indexed_items.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }