[mlpack-git] master: Remove const identifier since it gets ignored and throws a warning. (45d83df)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:56:45 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 45d83df3ad52f199fbedcc263287016bda47c423
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Aug 5 14:42:28 2014 +0000

    Remove const identifier since it gets ignored and throws a warning.


>---------------------------------------------------------------

45d83df3ad52f199fbedcc263287016bda47c423
 src/mlpack/core/dists/discrete_distribution.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the mlpack-git mailing list