18 template <
typename Pupper>
33 std::ostringstream out;
36 fns::pup(pupper, object, {});
45 return to_debug(
const_cast<T&>(object));
This pupper wraps another pupper, logging each call to Wrapped::begin(), Wrapped::pup() and wrapped::...
DebugPupper< Pupper > debug_pupper(Pupper &pupper, std::ostream &out)
Wraps existing pupper in a DebugPupper.
std::string to_debug(T &object)
Returns a string representation of object.
DebugPupper< NullPupper > debug_pupper(std::ostream &out)
DebugPupper wrapping a NullPupper.
std::string to_debug(const T &object)
Returns a string representation of object.