'Error: GCC parenthesized initializer in array new

In template class constructor,initialize a array by T *p = new T[10](userInputData) But the G++ parenthesized initializer in array new, how to deal with it?

c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source