Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6815: Compile time checking of format string (e.g. in printf)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-10-18 18:53:11
#6815: Compile time checking of format string (e.g. in printf)
--------------------------------------+--------------------------------
Reporter: d.starosud@⦠| Owner: James E. King, III
Type: Feature Requests | Status: closed
Milestone: To Be Determined | Component: format
Version: Boost Development Trunk | Severity: Not Applicable
Resolution: wontfix | Keywords:
--------------------------------------+--------------------------------
Changes (by James E. King, III):
* status: assigned => closed
* resolution: => wontfix
Comment:
This implementation is incomplete so I am going to mark it as wontfix.
Seems like a cool idea but it wouldn't support dynamically generated
format specifications and doesn't support the complete syntax of boost
format... unit tests should be used in consuming code to ensure no
exceptions occur.
An interesting place to make a change like this could be in the gcc/clang
static analyzers... if you build with "-Wformat" they can stop a build on
a static format string that is malformed or when the wrong sized argument
is given for a conversion specifier. Perhaps adding support for
boost::format to that would be useful, but it still wouldn't take care of
dynamically generated format specifications.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/6815#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-10-18 19:00:53 UTC