printf
完全転送を利用する (ロギングに使用される) のような関数があるとします。
template<typename... Arguments>
void awesome_printf(std::string const& fmt, Arguments&&... args)
{
boost::format f(fmt);
f % /* How to specify `args` here? */;
BlackBoxLogFunction(boost::str(f).c_str());
}
(私はこれをコンパイルしませんでしたが、私の実際の機能はこのガイドラインに従います)
可変引数を boost::format 変数に「展開」するにはどうすればよいですf
か?