X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Ffmt.h;h=8633324b5c0d323d272a194d5e9c68716093b671;hb=fe8c3e73b5d9147d400c2b7d2e35ebfc64fc7b9d;hp=ba75958802b7760b6f6b352827e4f313048e717f;hpb=b42ed73a1b241c0e93ee03c43c4584b41c549bac;p=libs%2Fcore.git 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