[shark] 19/58: aparently there changed more in 1.60

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 16 10:05:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository shark.

commit 1c8fb3a5703171b8c4f4d1b99b545ff03f203832
Author: Oswin <oswin.krause at di.ku.dk>
Date:   Wed Feb 3 14:58:26 2016 +0100

    aparently there changed more in 1.60
---
 include/shark/Algorithms/Trainers/Distribution/NormalTrainer.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/shark/Algorithms/Trainers/Distribution/NormalTrainer.h b/include/shark/Algorithms/Trainers/Distribution/NormalTrainer.h
index 13c2ec8..2243714 100644
--- a/include/shark/Algorithms/Trainers/Distribution/NormalTrainer.h
+++ b/include/shark/Algorithms/Trainers/Distribution/NormalTrainer.h
@@ -72,9 +72,12 @@ public:
 	{
 		SIZE_CHECK(input.size() > 1u);
 		namespace bae = boost::accumulators::extract;
-
 		InternalAccumulatorType accu;
+#ifdef BOOST_VERSION < 106000
+		boost::range::for_each(input, boost::bind(boost::ref(accu), _1));
+#else
 		boost::range::for_each(input, boost::bind(boost::ref(accu), boost::placeholders::_1));
+#endif
 		SIZE_CHECK(bae::count(accu) > 1u);
 
 		normal.mean(bae::mean(accu));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git



More information about the debian-science-commits mailing list