The code:struct X { explicit X(int n) : value(n) {} // error C2664: 'X::X(const X &)' : cannot convert parameter 2 from 'int' to 'const X &' // works without the explicit keyword in X(int) constructor X() : X(0) {} int value;}; int main(){ X x;}This is not correct. It should compile fine and compiles in gcc-4.5.1 and other compilers supporting C++11.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results