For what it&#x27;s worth, C++ has a better way to do this.<p><a href="http:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;language&#x2F;parameter_pack" rel="nofollow">http:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;language&#x2F;parameter_pack</a><p>You might want to skip down to the example, a type safe printf.