Compiling the code below should result in the "looser throw specifier" error from the gcc compiler. It does give me that error if I un-comment the destructor in the derived class. But the default destructor created by the compiler should will be essentially the same. So I'm wondering why this compiles.
Code:
#include <iostream>
class Base {
public: Base() { std::cout
Leave a comment: