In the linked answer, all you need to change is to make
format_string
a template and pass <T...>
to its template arguments.