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
parent ec66fc21bb
commit 71abf53d3c
+6 -4
View File
@@ -170,10 +170,12 @@ public:
bool IsLoaded() const { return m_Value.IsSet(); } bool IsLoaded() const { return m_Value.IsSet(); }
// Hacks for VC6 for all boolean operators. // Hacks for VC6 for all boolean operators.
// todo: get rid of these -aj // These three no longer appear to be required:
bool operator ! () const { return !GetValue(); } //bool operator ! () const { return !GetValue(); }
bool operator && ( const T& input ) const { return GetValue() && input; } //bool operator && ( const T& input ) const { return GetValue() && input; }
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; } bool operator == ( const T& input ) const { return GetValue() == input; }
}; };