basic idea. --- T x; T* px = new T(x); --- int x int* px = new int(x); // fails ---
I need to do this for structs and basic types. What's the standard way to do this?
basic idea. --- T x; T* px = new T(x); --- int x int* px = new int(x); // fails ---
I need to do this for structs and basic types. What's the standard way to do this?