I am trying to make some magic function that can handle unlimited arguments(like in printf) and different types, like:
MagicFun(signed int(-1), "Hello!", __int16(200), glm::vec2(2, 2));
And I want that function to detect the type of it like if its int, const char* or vec2/3... and I want to get the values of them.
Is it really possible? I heard about template <typename T>
but I am in a confusion about how do I use it. Thanks.