c++ – Why are single argument constructors not made explicit by default?

Question:

Why are single argument constructors not made explicit by default?

Answer:

So Stroustrup regretted it in some book 🙂 But…

Do you know this joke – that the diameter of the tanks of a spaceship is determined by the size of a horse's croup in ancient Rome? Of course, a bike , but …

So here – the original decision, when there was no explicit , and a sharp turn "all of a sudden" will lead to a violation of backward compatibility and inoperability of a large amount of already written code.

Scroll to Top