4 ms·
The =default syntax might be new, but this should work the same if you use {}... I think this semantic has been the same the whole time I've used C++ (which see
by saurik 1y ago
The =default syntax might be new, but this should work the same if you use {}... I think this semantic has been the same the whole time I've used C++ (which seems to be a lot longer than you)? (Or like, is the issue with using the is copy constructable check from the standard library? Back in the late 90s we all had those, just in bespoke libraries.)
- rramadass 1y ago> I think this semantic has been the same the whole time Yes; When you provide any of the "standard" ctors the compiler goes hands off leaving it entirely up to you to do the calls to any of the base ctors. The article was just Raymond being surprised since as somebody else has already pointed out the api name is a bit of a misnomer.
- saurik 1y agoYeah: I am not responding to the article, or Raymond's surprise; I am responding to the comment of someone here annoyed at recent C++.