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?
boost / format / format_class.hpp没有提到parse()会首先运行clear()。我发现的每个例子都在parse()之前调用clear()。有必要吗?
1 个解决方案
#1
0
No, it shouldn't be.
不,它不应该。
boost/format/format_class.hpp does mention this in it's file
boost / format / format_class.hpp确实在它的文件中提到了这一点
basic_format& parse(const string_type&); // resets buffers and parse a new format string
#1
0
No, it shouldn't be.
不,它不应该。
boost/format/format_class.hpp does mention this in it's file
boost / format / format_class.hpp确实在它的文件中提到了这一点
basic_format& parse(const string_type&); // resets buffers and parse a new format string