Skip to content

Instantly share code, notes, and snippets.

@ThePhD
Created January 4, 2014 16:57
Show Gist options
  • Select an option

  • Save ThePhD/8257377 to your computer and use it in GitHub Desktop.

Select an option

Save ThePhD/8257377 to your computer and use it in GitHub Desktop.
WAAAAAAAAAAAAAAASTE
template <typename TString, typename ...Tn>
inline typename unqualified<TString>::type Format( TString&& format, Tn&&... argn ) {
typedef typename unqualified<TString>::type string_t;
const static ulword arg_count = sizeof...( Tn );
if ( arg_count < 1 ) {
return std::forward<TString>( format );
}
std::array<string_t, sizeof...( Tn )> convertedvalues = {
Convert::ToString( std::forward<Tn>( argn ) )...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment