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...
This commit is contained in:
Robert Osfield
2010-03-10 10:32:58 +00:00
parent 6dc1ec6c4e
commit 1d036c0e8c
2 changed files with 3 additions and 0 deletions

View File

@@ -103,6 +103,8 @@ public:
value_type m_Elem;
bool m_Marker;
private:
node& operator = (const node&) { return *this; }
};

View File

@@ -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;