News for hackers. Stuff that matters.
Re:C++ compiler accepts explicit constructor call by shadowfox on Tuesday April 30, 2013 @08:35AM (#5631729)
Quite a valid observation from Stroustrup. But in this case the programmer has chosen to use a non-standard, vendor specific feature. So it is not clear how it applies here? (Especially given the cost of breaking existing code)
Re:C++ compiler accepts explicit constructor call by 430gj9j on Tuesday April 30, 2013 @08:38AM (#5631748)
The programmer inadvertently used a vendor-specific feature. This is the key difference. Nobody writes perfect, standards-compliant code all the time, so the compiler needs to tell you when you are doing this.
Re:C++ compiler accepts explicit constructor call by ambrop7 on Tuesday April 30, 2013 @08:47AM (#5631795)
Right, but it's a trivial fix, in this case at least. I'm happy as long as standard code works in their compiler. Considering how much trouble MS are having with getting their compiler standard-conformant, I'd rather they work on the more important features.