MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Trouble

Method Trouble

Examples/NoModules/Chapter 16/Ex16_05/Troubles.h:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8{
9public:
10 explicit Trouble(std::string_view message = "There's a problem")
11 : m_message {message}
12 {}
13 virtual ~Trouble() = default; // Base classes must have a virtual destructor!
14
15 virtual std::string_view what() const { return m_message; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected