mirror of
https://github.com/boostorg/python.git
synced 2026-01-29 19:52:16 +00:00
missing stdio.h include for printf; define operator!= to work around bug in Tru64 cxx algorithm library
[SVN r20296]
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <ostream>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user