we dropped Visual C++ 6 support a long time ago, so remove most of the boolean operator hacks.
However, the == one is still required (at least on Visual Studio 2008, not sure about others). Feel free to revert this if it's causing problems elsewhere.
This commit is contained in:
+6
-4
@@ -170,10 +170,12 @@ public:
|
||||
bool IsLoaded() const { return m_Value.IsSet(); }
|
||||
|
||||
// Hacks for VC6 for all boolean operators.
|
||||
// todo: get rid of these -aj
|
||||
bool operator ! () const { return !GetValue(); }
|
||||
bool operator && ( const T& input ) const { return GetValue() && input; }
|
||||
bool operator || ( const T& input ) const { return GetValue() || input; }
|
||||
// These three no longer appear to be required:
|
||||
//bool operator ! () const { return !GetValue(); }
|
||||
//bool operator && ( const T& input ) const { return GetValue() && input; }
|
||||
//bool operator || ( const T& input ) const { return GetValue() || input; }
|
||||
|
||||
// This one is still required in at least Visual Studio 2008:
|
||||
bool operator == ( const T& input ) const { return GetValue() == input; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user