]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/print_inf.cpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_inf.cpp
diff --git a/src/stlplus/strings/print_inf.cpp b/src/stlplus/strings/print_inf.cpp
new file mode 100644 (file)
index 0000000..8a12f40
--- /dev/null
@@ -0,0 +1,38 @@
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+//   Author:    Andy Rushton\r
+//   Copyright: (c) Southampton University 1999-2004\r
+//              (c) Andy Rushton           2004-2009\r
+//   License:   BSD License, see ../docs/license.html\r
+\r
+//   String conversion functions for the infinite precision integer type inf\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+// can be excluded from the build to break the dependency on the portability library\r
+#ifndef NO_STLPLUS_INF\r
+\r
+#include "print_inf.hpp"\r
+#include "string_inf.hpp"\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  void print_inf(std::ostream& device,\r
+                 const stlplus::inf& data,\r
+                 unsigned radix,\r
+                 radix_display_t display,\r
+                 unsigned width)\r
+    throw(std::invalid_argument)\r
+  {\r
+    device << inf_to_string(data, radix, display, width);\r
+  }\r
+\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+} // end namespace stlplus\r
+\r
+#endif\r
This page took 0.025397 seconds and 4 git commands to generate.