MCPcopy Create free account
hub / github.com/doctest/doctest / toString

Function toString

examples/all_features/stringification.cpp:164–166  ·  view source on GitHub ↗

as a third option you may provide an overload of toString()

Source from the content-addressed store, hash-verified

162
163// as a third option you may provide an overload of toString()
164inline doctest::String toString(const Foo &) {
165 return "Foo{}";
166}
167
168struct MyOtherType {
169 int data;

Callers 7

intTranslatorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected