X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Ffmt.h;h=84690d174388ce288eb78243d9973b1f2662d1e0;hb=d16185720fa344263367dbd50c61bfc8183d99a4;hp=ba75958802b7760b6f6b352827e4f313048e717f;hpb=b42ed73a1b241c0e93ee03c43c4584b41c549bac;p=libs%2Fcore.git diff --git a/source/strings/fmt.h b/source/strings/fmt.h index ba75958..84690d1 100644 --- a/source/strings/fmt.h +++ b/source/strings/fmt.h @@ -1,18 +1,20 @@ -/* $Id$ - -This file is part of libmspstrings -Copyright © 2006-2008 Mikko Rasa -Distributed under the LGPL -*/ - #ifndef MSP_STRINGS_FMT_H_ #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