Re: [boost] boost.format(): Unexpected assert failure?

----- Mensaje original ----- De: Jon Radoff <jonradoff@sparkforge.com> Fecha: Jueves, Septiembre 7, 2006 9:25 pm Asunto: [boost] boost.format(): Unexpected assert failure?
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?
Hello Jon, I think this problem has been reported in the past and is already fixed both in the CVS main trunk and the 1.34 branch. You might want to check it out by yourself by replacing your local copy of boost/format/feed_args.hpp with the version at: http://tinyurl.com/kzgdo (press download on the page referred to by the link above). Hope this helps, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (1)
-
JOAQUIN LOPEZ MU?Z