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:
@@ -103,6 +103,8 @@ public:
|
||||
|
||||
value_type m_Elem;
|
||||
bool m_Marker;
|
||||
private:
|
||||
node& operator = (const node&) { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user