[opengm] 209/386: fixed bug i introduced

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:37:47 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository opengm.

commit b939da99ebefe64500310fdc2b16a693f155626f
Author: DerThorsten <thorsten.beier at iwr.uni-heidelberg.de>
Date:   Fri Jan 9 11:06:11 2015 +0100

    fixed bug i introduced
---
 include/opengm/learning/struct-max-margin.hxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/opengm/learning/struct-max-margin.hxx b/include/opengm/learning/struct-max-margin.hxx
index 886d8b4..709f0b8 100644
--- a/include/opengm/learning/struct-max-margin.hxx
+++ b/include/opengm/learning/struct-max-margin.hxx
@@ -105,8 +105,8 @@ private:
 					// get E(x,y) and F(x,y)
 					//std::cout << "locking model " << i << " of " << _dataset.getNumberOfModels() <<  std::endl;
 					_dataset.lockModel(i);
-					GMType &     gm  = _dataset.getModel(i);
-					GMWITHLOSS & gml = _dataset.getModelWithLoss(i);
+					const GMType &     gm  = _dataset.getModel(i);
+					const GMWITHLOSS & gml = _dataset.getModelWithLoss(i);
 
 					// get the best-effort solution y'
 					const ConfigurationType& bestEffort = _dataset.getGT(i);

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



More information about the debian-science-commits mailing list