diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
| commit | d6414c9ff74e3f8076a1e94d3c6074366119900e (patch) | |
| tree | b0620f1f1610b51b386964d6758b5787b6cb7d6f /node/Array.hpp | |
| parent | 5076c75b079fe02c843ca85dc20821e468b2d7b8 (diff) | |
| download | infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.tar.gz infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.zip | |
Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
Diffstat (limited to 'node/Array.hpp')
| -rw-r--r-- | node/Array.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/node/Array.hpp b/node/Array.hpp index d0fe10ec..d48c2f52 100644 --- a/node/Array.hpp +++ b/node/Array.hpp @@ -94,7 +94,14 @@ public: inline reference back() throw() { return data[S-1]; } inline const_reference back() const throw() { return data[S-1]; } - inline bool operator==(const Array &k) const throw() { return std::equal(begin(),end(),k.begin()); } + inline bool operator==(const Array &k) const throw() + { + for(unsigned long i=0;i<S;++i) { + if (data[i] != k.data[i]) + return false; + } + return true; + } inline bool operator<(const Array &k) const throw() { return std::lexicographical_compare(begin(),end(),k.begin(),k.end()); } inline bool operator!=(const Array &k) const throw() { return !(*this == k); } inline bool operator>(const Array &k) const throw() { return (k < *this); } |
