MCPcopy Create free account
hub / github.com/boostorg/leaf / output

Function output

include/boost/leaf/exception.hpp:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19{
20 template <class Encoder>
21 void output(Encoder & e, std::exception const & x)
22 {
23 char const dynamic_type[] = "dynamic_type";
24 char const what[] = "what";
25#ifdef BOOST_LEAF_NO_EXCEPTIONS
26 output_at(e, "<<unknown>>", dynamic_type);
27#else
28 output_at(e, detail::demangler(typeid(x).name()).get(), dynamic_type);
29#endif
30 if( char const * wh = x.what() )
31 output_at(e, wh, what);
32 else
33 output_at(e, "<<nullptr>>", what);
34 }
35
36 template <class Encoder>
37 void output(Encoder & e, std::exception_ptr const & x)

Callers

nothing calls this directly

Calls 4

demanglerClass · 0.85
getMethod · 0.45
nameMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected