#include <boost/assert.hpp>
#include <boost/histogram/axis/regular.hpp>
-#include <boost/histogram/detail/cat.hpp>
#include <boost/histogram/detail/static_if.hpp>
#include <boost/histogram/detail/type_name.hpp>
#include <boost/histogram/fwd.hpp>
#include <boost/throw_exception.hpp>
#include <iomanip>
#include <iosfwd>
+#include <sstream>
#include <stdexcept>
#include <type_traits>
using A = std::decay_t<decltype(x)>;
detail::static_if<detail::is_streamable<A>>(
[&os](const auto& x) { os << x; },
- [](const auto&) {
- BOOST_THROW_EXCEPTION(std::runtime_error(
- detail::cat(detail::type_name<A>(), " is not streamable")));
- },
- x);
+ [&os](const auto&) { os << "<unstreamable>"; }, x);
},
v);
return os;