If I declare a class with a standard constructor and define an instance of this class with a list of initializers, as shown below, will the default constructor be called for this definition? And why were they called or not called?
class Sample
{
};
int main()
{
Sample s = {0};
return 0;
}
source
share