Here I have an example class :
template<typename T, unsigned int SIZE> class MyClass
{
public:
MyClass();
~MyClass();
protected:
T _data[SIZE];
};
template<typename T, unsigned int SIZE> MyClass<T, SIZE>::MyClass() : // _data() OR _data({}) OR _data{} OR...
{
;
}
What is the correct C++ 2011 syntax to initialize the entire array to 0 in the default constructor ?
Thank you very much.
Unified initializer syntax works well: