[mlpack] 04/30: switch last (!) remaining std::cout to destination
Barak A. Pearlmutter
barak+git at pearlmutter.net
Mon Dec 26 10:15:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 509739bd32e49e2151b1e0b36bf7a491645b6e40
Author: Dirk Eddelbuettel <edd at debian.org>
Date: Sun Nov 20 11:58:52 2016 -0600
switch last (!) remaining std::cout to destination
---
src/mlpack/core/util/prefixedoutstream_impl.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/util/prefixedoutstream_impl.hpp b/src/mlpack/core/util/prefixedoutstream_impl.hpp
index 24eeccc..75855ea 100644
--- a/src/mlpack/core/util/prefixedoutstream_impl.hpp
+++ b/src/mlpack/core/util/prefixedoutstream_impl.hpp
@@ -102,7 +102,8 @@ void PrefixedOutStream::BaseLogic(const T& val)
// If we displayed a newline and we need to throw afterwards, do that.
if (fatal && newlined)
{
- std::cout << std::endl;
+ if (!ignoreInput)
+ destination << std::endl;
// Print a backtrace, if we can.
#ifdef HAS_BFD_DL
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list