Argument types in format specifications are ignored by boost::format because the argument type is carried through the conversion by operator %. This change allows boost::format to parse through format strings with Microsoft specific argument types without throwing an exception.
With-Commit-String values are from msvc-14.1 using default en_US locale.
String
Data
Pre-Commit
With-Commit-String
%wc | '5' | boost::bad_format_string: format-string is ill-formed | 5
%Id | 12345 | boost::bad_format_string: format-string is ill-formed | 12345
%I32d | 12345 | boost::bad_format_string: format-string is ill-formed | 12345
%I64d | 1234567890123 | boost::bad_format_string: format-string is ill-formed | 1234567890123
Argument types in format specifications are ignored by
boost::format
because the argument type is carried through the conversion byoperator %
. This change allowsboost::format
to parse through format strings with Microsoft specific argument types without throwing an exception.With-Commit-String values are from msvc-14.1 using default en_US locale.
%wc
|'5'
| boost::bad_format_string: format-string is ill-formed |5
%Id
|12345
| boost::bad_format_string: format-string is ill-formed |12345
%I32d
|12345
| boost::bad_format_string: format-string is ill-formed |12345
%I64d
|1234567890123
| boost::bad_format_string: format-string is ill-formed |1234567890123
This closes #35