X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Ffmt.h;fp=source%2Fstrings%2Ffmt.h;h=8633324b5c0d323d272a194d5e9c68716093b671;hp=ba75958802b7760b6f6b352827e4f313048e717f;hb=02df44f46e4aaa3989d0ee9c9e2e25f8a808e0ec;hpb=3a965c87750250c8facc9dbff02aeb3a88e19f05 diff --git a/source/strings/fmt.h b/source/strings/fmt.h index ba75958..8633324 100644 --- a/source/strings/fmt.h +++ b/source/strings/fmt.h @@ -9,10 +9,19 @@ Distributed under the LGPL #define MSP_STRINGS_FMT_H_ #include +#include #include namespace Msp { +class format_error: public std::logic_error +{ +public: + format_error(const std::string &w): std::logic_error(w) { } + virtual ~format_error() throw() { } +}; + + /** Stores formatting information for converting variables into strings. Can be applied to an std::ostream or fed to lexical_cast. Also used internally by