[mlpack-git] master: Add Serialize() for empty class. (a2579f3)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Fri Jul 10 18:59:57 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/4a97187bbba7ce8a6191b714949dd818ef0f37d2...e5905e62c15d1bcff21e6359b11efcd7ab6d7ca0

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

commit a2579f32255928c7204b4452d9b3c8d674a47d0a
Author: ryan <ryan at ratml.org>
Date:   Tue Apr 21 16:07:43 2015 -0400

    Add Serialize() for empty class.


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

a2579f32255928c7204b4452d9b3c8d674a47d0a
 src/mlpack/core/metrics/lmetric.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mlpack/core/metrics/lmetric.hpp b/src/mlpack/core/metrics/lmetric.hpp
index 25f19fa..6ea9419 100644
--- a/src/mlpack/core/metrics/lmetric.hpp
+++ b/src/mlpack/core/metrics/lmetric.hpp
@@ -79,6 +79,10 @@ class LMetric
 
   //! Return a string representation of the object.
   std::string ToString() const;
+
+  //! Serialize the metric (nothing to do).
+  template<typename Archive>
+  void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
 };
 
 // Convenience typedefs.



More information about the mlpack-git mailing list