diff --git a/src/mlpack/core/util/prefixedoutstream_impl.hpp b/src/mlpack/core/util/prefixedoutstream_impl.hpp index 895de2ae358..a97cc7899e4 100644 --- a/src/mlpack/core/util/prefixedoutstream_impl.hpp +++ b/src/mlpack/core/util/prefixedoutstream_impl.hpp @@ -103,7 +103,7 @@ void PrefixedOutStream::BaseLogic(const T& val) if (fatal && newlined) { if (!ignoreInput) - std::cout << std::endl; + destination << std::endl; // Print a backtrace, if we can. #ifdef HAS_BFD_DL