[mlpack-git] master: const Serialize() functions don't get picked up right by the compiler. (74846d3)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Tue Dec 22 17:02:24 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/6ab20afd8adaf9dcb86bc9a8ea98a24dd8b18743...eb41f4bc27b484c347acc006255104e2f8cc4eef
>---------------------------------------------------------------
commit 74846d30545bc5f65bf7664fd4ad5a7fcdd70c67
Author: ryan <ryan at ratml.org>
Date: Tue Dec 22 17:01:06 2015 -0500
const Serialize() functions don't get picked up right by the compiler.
>---------------------------------------------------------------
74846d30545bc5f65bf7664fd4ad5a7fcdd70c67
src/mlpack/core/kernels/cosine_distance.hpp | 2 +-
src/mlpack/core/kernels/example_kernel.hpp | 2 +-
src/mlpack/core/kernels/linear_kernel.hpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mlpack/core/kernels/cosine_distance.hpp b/src/mlpack/core/kernels/cosine_distance.hpp
index 2f672d1..dcf3cdb 100644
--- a/src/mlpack/core/kernels/cosine_distance.hpp
+++ b/src/mlpack/core/kernels/cosine_distance.hpp
@@ -37,7 +37,7 @@ class CosineDistance
//! Serialize the class (there's nothing to save).
template<typename Archive>
- void Serialize(Archive& /* ar */, const unsigned int /* version */) const { }
+ void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
};
//! Kernel traits for the cosine distance.
diff --git a/src/mlpack/core/kernels/example_kernel.hpp b/src/mlpack/core/kernels/example_kernel.hpp
index 04fd66f..3db0d27 100644
--- a/src/mlpack/core/kernels/example_kernel.hpp
+++ b/src/mlpack/core/kernels/example_kernel.hpp
@@ -102,7 +102,7 @@ class ExampleKernel
* not need to do anything at all.
*/
template<typename Archive>
- void Serialize(Archive& /* ar */, const unsigned int /* version */) const { }
+ void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
/**
* Obtains the convolution integral [integral K(||x-a||)K(||b-x||)dx]
diff --git a/src/mlpack/core/kernels/linear_kernel.hpp b/src/mlpack/core/kernels/linear_kernel.hpp
index 0aac392..319dd1f 100644
--- a/src/mlpack/core/kernels/linear_kernel.hpp
+++ b/src/mlpack/core/kernels/linear_kernel.hpp
@@ -52,7 +52,7 @@ class LinearKernel
//! Serialize the kernel (it has no members... do nothing).
template<typename Archive>
- void Serialize(Archive& /* ar */, const unsigned int /* version */) const { }
+ void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
};
} // namespace kernel
More information about the mlpack-git
mailing list