From 13e118b0dddb7264a48348a55e11959c0783a899 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 7 Oct 2003 21:07:03 +0000 Subject: [PATCH] missing stdio.h include for printf; define operator!= to work around bug in Tru64 cxx algorithm library [SVN r20296] --- test/IntWrapper.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/IntWrapper.hpp b/test/IntWrapper.hpp index 4204ab0e..15719209 100755 --- a/test/IntWrapper.hpp +++ b/test/IntWrapper.hpp @@ -20,6 +20,7 @@ #include #include +#include struct IntWrapper { static bool gIntWrapperTrace; @@ -41,6 +42,7 @@ struct IntWrapper { }; inline bool operator== (IntWrapper const &lhs, IntWrapper const &rhs); +inline bool operator!= (IntWrapper const &lhs, IntWrapper const &rhs); inline bool operator< (IntWrapper const &lhs, IntWrapper const &rhs); inline int compare (IntWrapper const &lhs, IntWrapper const &rhs); inline std::ostream &operator<< (std::ostream &strm, IntWrapper const &iw); @@ -142,6 +144,11 @@ bool operator== (IntWrapper const &lhs, IntWrapper const &rhs) return lhs.mI == rhs.mI; } +bool operator!= (IntWrapper const &lhs, IntWrapper const &rhs) +{ + return lhs.mI != rhs.mI; +} + bool operator< (IntWrapper const &lhs, IntWrapper const &rhs) { return lhs.mI < rhs.mI;