Difference between =default and empty constructor with no arguments?
Is there difference between:
MyClass() {}
MyClass() = default;
Overall No there is not. ;)
It will do overall the same, but not exactly (like sftrabbit, Nawaz, and 0x499602D2 suggest it, thanks by the way).
You will find an answer to your question here ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With