Am 16.01.2017 09:54, schrieb Olaf van der Spek:
On Sun, Jan 15, 2017 at 9:42 PM, Damien Buhl
wrote: Libraries like boost::format have their strengths, when simply concatenating information does not fit the needs. E.g. for internationalized text output. I like boost::format a lot, but speed actually is not its focus. I personally uses boost::format alot, but I think boost::format would be easier and shorter to use if it would be callable with an `std::string snprintf(format_str, args...)`. And it would be awesome that
On 15/01/2017 14:39, Christof Donat wrote: format_str would be, if already known at compile time handled with Metaparse. Sorry for getting off-topic. :D
Can't boost::format be updated to a variadic variant?
I think so. Something like this should be possible, of course:
auto format_args_imp(const boost::format& f) -> const boost::format& {
return f;
}
template