C++ types need to be allocated with new