
On 2/10/2012 1:14 AM, Igor R wrote:
A common case for using Boost.Format is in the production of error or warning messages. So, these don't get run on a normal use of the program, and problems with the arguments will go unnoticed until there _is_ an error, in which case I get (at best) no error message, or worse, turn a log-only warning statement into an exception.
Does Format already have some features to make it not throw exceptions?
http://www.boost.org/doc/libs/1_48_0/libs/format/doc/format.html#exceptions
It seems to suppress exceptions for some things, but a format string like: "Funny format string: 25% off now! %z %x" still throws an exception "boost::bad_format_string: format-string is ill-formed" when exceptions(boost::io::no_error_bits) is used. —John