It is possible to use boost::format with std::vector<std::string> like below.
std::vector<std::string> name = {"some", "name"};
boost::format("%s, %s") % name[0] % name[1];
Since I have a large vector, I would like to use them together without manually writing indices:
std::vector<std::string> name = {"some", "name"};
boost::format("%s, %s") % name;
Using something like boost::algorithm::join to join strings is not an option. Is there a way to achieve string formatting with a vector without explicitly writing indices?