Deriving class from virtual base with no default constructor
问题 I'm writing a small hierarchy of exception classes for a C++ application I'm developing, and I'm having trouble deriving indirectly from std::runtime_error . Here is code analogous to what I've written so far: class RuntimeException : public virtual boost::exception, public virtual std::runtime_error { public: virtual ~RuntimeException() {} RuntimeException() : runtime_error("A RuntimeException occurred.") {} RuntimeException(const std::string& what) : runtime_error(what) {} }; class