[mlpack] 286/324: Remove const identifier since it gets ignored and throws a warning.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:19 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit c8938c0ed08dc499b567280c9f98685515b6dc82
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Tue Aug 5 14:42:28 2014 +0000
Remove const identifier since it gets ignored and throws a warning.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16970 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/core/dists/discrete_distribution.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/core/dists/discrete_distribution.hpp b/src/mlpack/core/dists/discrete_distribution.hpp
index 7ec605b..1f01058 100644
--- a/src/mlpack/core/dists/discrete_distribution.hpp
+++ b/src/mlpack/core/dists/discrete_distribution.hpp
@@ -77,7 +77,7 @@ class DiscreteDistribution
/**
* Get the dimensionality of the distribution.
*/
- static size_t const Dimensionality() { return 1; }
+ static size_t Dimensionality() { return 1; }
/**
* Return the probability of the given observation. If the observation is
@@ -150,7 +150,7 @@ class DiscreteDistribution
void Save(util::SaveRestoreUtility& n) const;
void Load(const util::SaveRestoreUtility& n) { n.LoadParameter(probabilities, "probabilities"); }
static std::string const Type() { return "DiscreteDistribution"; }
-
+
private:
arma::vec probabilities;
};
--
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