--- a/src/simulator/high-precision-cairo.h Wed Aug 18 13:58:50 2010 -0700
+++ b/src/simulator/high-precision-cairo.h Wed Aug 18 15:06:26 2010 -0700
@@ -162,6 +162,17 @@
}
#undef HPCAIRO_MAX_64
+std::ostream &operator << (std::ostream &os, const HighPrecision &hp)
+{
+ // XXX stubbed out
+ return os;
+}
+std::istream &operator >> (std::istream &is, HighPrecision &hp)
+{
+ // XXX stubbed out
+ return is;
+}
+
} // namespace ns3
#endif /* HIGH_PRECISION_CAIRO_H */
--- a/src/simulator/high-precision-double.h Wed Aug 18 13:58:50 2010 -0700
+++ b/src/simulator/high-precision-double.h Wed Aug 18 15:06:26 2010 -0700
@@ -21,6 +21,7 @@
#define HIGH_PRECISION_DOUBLE_H
#include <math.h>
+#include "ns3/fatal-error.h"
namespace ns3 {
@@ -56,6 +57,9 @@
double m_value;
};
+inline std::ostream &operator << (std::ostream &os, const HighPrecision &hp);
+inline std::istream &operator >> (std::istream &is, HighPrecision &hp);
+
} // namespace ns3
namespace ns3 {
@@ -131,8 +135,7 @@
int64_t
HighPrecision::GetHigh (void) const
{
- NS_FATAL_ERROR ("XXX this function unavailable for high-precision-as-double; patch requested");
- return 0;
+ return GetInteger ();
}
uint64_t
@@ -142,6 +145,19 @@
return 0;
}
+std::ostream &operator << (std::ostream &os, const HighPrecision &hp)
+{
+ // XXX stubbed out
+ return os;
+}
+
+std::istream &operator >> (std::istream &is, HighPrecision &hp)
+{
+ // XXX stubbed out
+ return is;
+}
+
+
} // namespace ns3
#endif /* HIGH_PRECISION_DOUBLE_H */