[mlpack-git] master: Update comment for serialize() interception. (2cd4052)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Fri Jul 10 18:59:55 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/4a97187bbba7ce8a6191b714949dd818ef0f37d2...e5905e62c15d1bcff21e6359b11efcd7ab6d7ca0
>---------------------------------------------------------------
commit 2cd40524eb4967fa02bfa82c42bd705d3115e6ae
Author: ryan <ryan at ratml.org>
Date: Tue Apr 21 16:07:31 2015 -0400
Update comment for serialize() interception.
>---------------------------------------------------------------
2cd40524eb4967fa02bfa82c42bd705d3115e6ae
src/mlpack/core/data/serialization_shim.hpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/data/serialization_shim.hpp b/src/mlpack/core/data/serialization_shim.hpp
index 80b78a5..fd38adf 100644
--- a/src/mlpack/core/data/serialization_shim.hpp
+++ b/src/mlpack/core/data/serialization_shim.hpp
@@ -556,7 +556,10 @@ Archive& operator>>(Archive& ar, FirstNormalArrayShim<T> t)
namespace boost {
namespace serialization {
-// Overload final serialize() call for PointerShims.
+/**
+ * Catch a call to serialize() with a PointerShim, and call the Serialize()
+ * function directly.
+ */
template<typename Archive, typename T>
inline void serialize(Archive& ar,
mlpack::data::PointerShim<T>& t,
More information about the mlpack-git
mailing list