How is “=default” different from “{}” for default constructor and destructor?

I originally posted this as a question only about destructors, but now I’m adding consideration of the default constructor. Here’s the original question: If I want to give my class a destructor that is virtual, but is otherwise the same as what the compiler would generate, I can use =default: class Widget { public: virtual … Read more