It's 2016 and C++11 supports these natively

This commit is contained in:
DarthArgus
2016-12-15 03:01:41 +00:00
parent 18cb7d0e95
commit 3bdc77a5d2
5 changed files with 28 additions and 11 deletions
@@ -47,6 +47,7 @@ public:
NetworkId& operator= (const NetworkId&);
bool operator< (const NetworkId& rhs) const;
bool operator> (const NetworkId& rhs) const;
bool operator== (const NetworkId& rhs) const;
bool operator!= (const NetworkId& rhs) const;
size_t getHashValue() const;
@@ -94,6 +95,11 @@ inline bool NetworkId::operator< (const NetworkId& rhs) const
return m_value < rhs.m_value;
}
inline bool NetworkId::operator> (const NetworkId& rhs) const
{
return m_value > rhs.m_value;
}
// -----------------------------------------------------------------------
inline bool NetworkId::operator== (const NetworkId& rhs) const
@@ -10,6 +10,7 @@
#define PLATFORM_LINUX
#include <cstdio>
#include <inttypes.h>
// ======================================================================
// basic types that we assume to be around
@@ -20,8 +21,8 @@ typedef unsigned long uint32;
typedef signed char int8;
typedef signed short int16;
typedef signed long int32;
typedef signed long long int int64;
typedef unsigned long long int uint64;
typedef int64_t int64;
typedef uint64_t uint64;
typedef float real;
typedef FILE* FILE_HANDLE;