boost.format(): Unexpected assert failure?

7 Sep
2006
7 Sep
'06
7:25 p.m.
The following snippet causes an assertion in debug mode on MSVC++ 8. ---cut--- string Output; string Blank; format fmt("Blank string: %s"); fmt % Blank; // This line causes an assertion in MSVC8 Output = fmt.str(); ---cut--- Rather than cause an assertion, shouldn't the formatter properly deal with the case of a zero-length string? Or is there a preferred way to handle this and/or parameter to pass to the formatter to handle zero-length strings?
6855
Age (days ago)
6855
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jon Radoff