Boost logo

Boost Users :

Subject: Re: [Boost-users] How to make Boost.Format fault tolerant?
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2012-02-11 02:43:12

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?

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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at