http://archive.mag2.com/0000236703/index.html
これって定石なのかなぁ?
#include <iostream> using namespace std; class Foo { public: virtual ~Foo() = 0; }; Foo::~Foo() {} class Bar : public Foo {}; int main() { Bar bar; return 0; }
http://archive.mag2.com/0000236703/index.html
これって定石なのかなぁ?
#include <iostream> using namespace std; class Foo { public: virtual ~Foo() = 0; }; Foo::~Foo() {} class Bar : public Foo {}; int main() { Bar bar; return 0; }