X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_inf.cpp;h=fb55917aec0a761301cf82f8446a1007b18f03d7;hp=8a12f40e54935a0baabdca571eeb37a225cd11bc;hb=6c9943707d4f33035830eba0587a61a34eaecbc2;hpb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c diff --git a/src/stlplus/strings/print_inf.cpp b/src/stlplus/strings/print_inf.cpp index 8a12f40..fb55917 100644 --- a/src/stlplus/strings/print_inf.cpp +++ b/src/stlplus/strings/print_inf.cpp @@ -1,38 +1,38 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// String conversion functions for the infinite precision integer type inf - -//////////////////////////////////////////////////////////////////////////////// - -// can be excluded from the build to break the dependency on the portability library -#ifndef NO_STLPLUS_INF - -#include "print_inf.hpp" -#include "string_inf.hpp" - -//////////////////////////////////////////////////////////////////////////////// - -namespace stlplus -{ - - void print_inf(std::ostream& device, - const stlplus::inf& data, - unsigned radix, - radix_display_t display, - unsigned width) - throw(std::invalid_argument) - { - device << inf_to_string(data, radix, display, width); - } - - -//////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus - -#endif +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// String conversion functions for the infinite precision integer type inf + +//////////////////////////////////////////////////////////////////////////////// + +// can be excluded from the build to break the dependency on the portability library +#ifndef NO_STLPLUS_INF + +#include "print_inf.hpp" +#include "string_inf.hpp" + +//////////////////////////////////////////////////////////////////////////////// + +namespace stlplus +{ + + void print_inf(std::ostream& device, + const stlplus::inf& data, + unsigned radix, + radix_display_t display, + unsigned width) + throw(std::invalid_argument) + { + device << inf_to_string(data, radix, display, width); + } + + +//////////////////////////////////////////////////////////////////////////////// + +} // end namespace stlplus + +#endif