Created
January 4, 2014 16:57
-
-
Save ThePhD/8257377 to your computer and use it in GitHub Desktop.
WAAAAAAAAAAAAAAASTE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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