diff --git a/src/stan/callbacks/multi_stream_writer.hpp b/src/stan/callbacks/multi_stream_writer.hpp index e56536edff..e45994ab5f 100644 --- a/src/stan/callbacks/multi_stream_writer.hpp +++ b/src/stan/callbacks/multi_stream_writer.hpp @@ -35,14 +35,10 @@ class multi_stream_writer { */ template void operator()(T&& x) { - stan::math::for_each([&](auto&& output) { - output(x); - }, output_); + stan::math::for_each([&](auto&& output) { output(x); }, output_); } void operator()() { - stan::math::for_each([](auto&& output) { - output(); - }, output_); + stan::math::for_each([](auto&& output) { output(); }, output_); } /** @@ -50,13 +46,11 @@ class multi_stream_writer { */ inline auto& get_stream() noexcept { return output_; } - private: /** * Output stream */ std::tuple...> output_; - }; } // namespace callbacks