1

boost/format/format_class.hpp doesn't mention that parse() would run clear() first. Every examples I can found calls clear() before parse(). Is it necessary?

4

1 回答 1

0

No, it shouldn't be.

boost/format/format_class.hpp does mention this in it's file

basic_format& parse(const string_type&); // resets buffers and parse a new format string
于 2013-09-24T06:40:36.000 回答