class P {
public:
explicit P( int a, int b, int c) {
std::cout<<"calling explicit constructor"<<"\n";
}
};
int main() {
P z {77,5,42};
P w = {77,5,42};
}
I think it {77,5,42}has an implicit type std::initialization_list<int>. If so, then what does not cause a failure to build the variable z?
source
share