From 25ae6d43df9ed3d30c65f103d30a36dd1fc03c20 Mon Sep 17 00:00:00 2001 From: Nikolaus Demmel Date: Tue, 6 Aug 2019 01:33:02 +0200 Subject: [PATCH] Make serialization functions for non-basalt types static. See: https://groups.google.com/d/msg/cerealcpp/WswQi_Sh-bw/Pw0GrfIqFQAJ --- include/basalt/io/dataset_io.h | 4 ++-- src/io/marg_data_io.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/basalt/io/dataset_io.h b/include/basalt/io/dataset_io.h index 1a209ed..9f4843f 100644 --- a/include/basalt/io/dataset_io.h +++ b/include/basalt/io/dataset_io.h @@ -157,7 +157,7 @@ namespace cereal { template -inline +static inline typename std::enable_if<_Rows == Eigen::Dynamic || _Cols == Eigen::Dynamic, void>::type save(Archive &ar, const Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, @@ -171,7 +171,7 @@ inline template -inline +static inline typename std::enable_if<_Rows == Eigen::Dynamic || _Cols == Eigen::Dynamic, void>::type load(Archive &ar, diff --git a/src/io/marg_data_io.cpp b/src/io/marg_data_io.cpp index 11971e8..7e30677 100644 --- a/src/io/marg_data_io.cpp +++ b/src/io/marg_data_io.cpp @@ -222,7 +222,7 @@ void serialize(Archive& ar, basalt::ImageData& m) { } template -void serialize(Archive& ar, Eigen::AffineCompact2f& m) { +static void serialize(Archive& ar, Eigen::AffineCompact2f& m) { ar(m.matrix()); } } // namespace cereal