3

これが与えられます:

boost::format greeting("%s (Greeting)");
boost::format name("%s (Name)");

「greetingwithname」は、「greeting」と「name」を結合して再利用する必要があるため、次のようになります。

boost::format greetingwithname("%s (Greeting) %s (Name)");
// looking for solution to like boost::format greetingwithname = greeting + name;

複数の boost::format オブジェクトから boost::format オブジェクトを作成するにはどうすればよいですか? / 最善の方法は何ですか?

4

1 に答える 1