std::string show(const ActRec& a) { return folly::to<std::string>( "ActRec { ", fpiKindStr(a.kind), a.func ? (": " + show(*a.func)) : std::string{}, " }" ); }
std::string show(const ActRec& a) { return folly::to<std::string>( "ActRec { ", fpiKindStr(a.kind), a.cls || a.func ? ": " : "", a.cls ? show(*a.cls) : "", a.cls && a.func ? "::" : "", a.func ? show(*a.func) : "", a.fallbackFunc ? show(*a.fallbackFunc) : "", " }" ); }