From 1d036c0e8c70c020bd18097cae4b5ab3f7363b9d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Mar 2010 10:32:58 +0000 Subject: [PATCH] From Laurens Voerman, "my compiler (VC Express 9) gives some warnings (see below) about not being able to generate an assignment operator. As those assignment operators are not used and problably should never be used, I solved this by creating an private (empty) assingment operator. " From Robert Osfield, added "return *this;" to Laurens's addition to prevent them generating a warning under gcc... --- src/osgUtil/tristripper/include/detail/graph_array.h | 2 ++ src/osgUtil/tristripper/include/detail/policy.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/osgUtil/tristripper/include/detail/graph_array.h b/src/osgUtil/tristripper/include/detail/graph_array.h index 51b66c3e3..b844aa554 100644 --- a/src/osgUtil/tristripper/include/detail/graph_array.h +++ b/src/osgUtil/tristripper/include/detail/graph_array.h @@ -103,6 +103,8 @@ public: value_type m_Elem; bool m_Marker; + private: + node& operator = (const node&) { return *this; } }; diff --git a/src/osgUtil/tristripper/include/detail/policy.h b/src/osgUtil/tristripper/include/detail/policy.h index 4c126c598..8a0450e54 100644 --- a/src/osgUtil/tristripper/include/detail/policy.h +++ b/src/osgUtil/tristripper/include/detail/policy.h @@ -32,6 +32,7 @@ public: void Challenge(strip Strip, size_t Degree, size_t CacheHits); private: + policy& operator = (const policy&) { return *this; } strip m_Strip; size_t m_Degree; size_t m_CacheHits;