Similar to The new syntax “= default” in C++11
But with regards to member fields all having default values.
Given:
struct Pixel {
int r = 0x00;
int g = 0x00;
int b = 0x00;
Pixel() {}; // Empty
Pixel() = default; // Default
};
What semantic differences do the two ctor styles have in this case?
1