//main.cpp
int main()
{
int x[0];
return 0;
}
//some class. for example stack
template<class T>
Stack::Stack(): _someParam(new T[0])
{ ... }
in first case VS13 says that i can not create array zero-size, but in the second case VS allow me to initialize array with size equals 0. Why does this happen?