Browse Source

Remove dependency on <functional>

Michael Hansen 12 years ago
parent
commit
92c5070736
  1. 9
      Sources/Plasma/CoreLib/plString.h

9
Sources/Plasma/CoreLib/plString.h

@ -46,7 +46,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h" #include "HeadSpin.h"
#include <stddef.h> #include <stddef.h>
#include <vector> #include <vector>
#include <functional>
/* NOTE & TODO: /* NOTE & TODO:
* These macros are intentionally annoyingly named, to mark what code * These macros are intentionally annoyingly named, to mark what code
@ -281,25 +280,25 @@ public:
plString ToLower() const; plString ToLower() const;
public: public:
struct less : public std::binary_function<plString, plString, bool> struct less
{ {
bool operator()(const plString &_L, const plString &_R) const bool operator()(const plString &_L, const plString &_R) const
{ return _L.Compare(_R, kCaseSensitive) < 0; } { return _L.Compare(_R, kCaseSensitive) < 0; }
}; };
struct less_i : public std::binary_function<plString, plString, bool> struct less_i
{ {
bool operator()(const plString &_L, const plString &_R) const bool operator()(const plString &_L, const plString &_R) const
{ return _L.Compare(_R, kCaseInsensitive) < 0; } { return _L.Compare(_R, kCaseInsensitive) < 0; }
}; };
struct equal : public std::binary_function<plString, plString, bool> struct equal
{ {
bool operator()(const plString &_L, const plString &_R) const bool operator()(const plString &_L, const plString &_R) const
{ return _L.Compare(_R, kCaseSensitive) == 0; } { return _L.Compare(_R, kCaseSensitive) == 0; }
}; };
struct equal_i : public std::binary_function<plString, plString, bool> struct equal_i
{ {
bool operator()(const plString &_L, const plString &_R) const bool operator()(const plString &_L, const plString &_R) const
{ return _L.Compare(_R, kCaseInsensitive) == 0; } { return _L.Compare(_R, kCaseInsensitive) == 0; }

Loading…
Cancel
Save