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

Method Trouble

Examples/NoModules/Chapter 16/Ex16_02/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 std::string_view what() const { return m_message; }
14private:
15 std::string m_message;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected