Writing a marker interface in C++

Just figured this out and it caused me about 3 hours of pain, so I figured I’d post it in case I need to do it again. class Base { public: virtual ~Base() {}; }; class Derived : public Base { private: set someSet; public: virtual ~Derived() {}; set getSomeSet() { return someSet; }; }; […]