How to construct a class from a pack in C++?
I am trying to initialize a class with a pack passed as an argument to my function. Here is what I got so far: struct Vec3 { float x, y, z; }; template<typename _Ty, typename… Args> __forceinline _Ty construct_class(Args&&… arguments) { return _Ty(arguments…); } // here I am trying to construct a Vec3 by calling… Read More How to construct a class from a pack in C++?