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:
freem
2014-07-26 19:00:50 -05:00
committed by Jonathan Payne
parent 9e0a42680a
commit ee3efaf36b
+6 -4
View File
@@ -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; }
};