]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/print_bool.cpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_bool.cpp
diff --git a/src/stlplus/strings/print_bool.cpp b/src/stlplus/strings/print_bool.cpp
new file mode 100644 (file)
index 0000000..adcebc1
--- /dev/null
@@ -0,0 +1,27 @@
+////////////////////////////////////////////////////////////////////////////////\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
+//   use the unsigned short representation for bool\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "print_bool.hpp"\r
+#include "print_int.hpp"\r
+\r
+namespace stlplus\r
+{\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+\r
+  void print_bool(std::ostream& device, bool i, unsigned radix, radix_display_t display, unsigned width)\r
+    throw(std::invalid_argument)\r
+  {\r
+    print_unsigned_short(device, (unsigned short)i, radix, display, width);\r
+  }\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+\r
+} // end namespace stlplus\r
This page took 0.022068 seconds and 4 git commands to generate.