Make serialization functions for non-basalt types static.
See: https://groups.google.com/d/msg/cerealcpp/WswQi_Sh-bw/Pw0GrfIqFQAJ
This commit is contained in:
parent
f958a7480d
commit
25ae6d43df
|
@ -157,7 +157,7 @@ namespace cereal {
|
|||
|
||||
template <class Archive, class _Scalar, int _Rows, int _Cols, int _Options,
|
||||
int _MaxRows, int _MaxCols>
|
||||
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 <class Archive, class _Scalar, int _Rows, int _Cols, int _Options,
|
||||
int _MaxRows, int _MaxCols>
|
||||
inline
|
||||
static inline
|
||||
typename std::enable_if<_Rows == Eigen::Dynamic || _Cols == Eigen::Dynamic,
|
||||
void>::type
|
||||
load(Archive &ar,
|
||||
|
|
|
@ -222,7 +222,7 @@ void serialize(Archive& ar, basalt::ImageData& m) {
|
|||
}
|
||||
|
||||
template <class Archive>
|
||||
void serialize(Archive& ar, Eigen::AffineCompact2f& m) {
|
||||
static void serialize(Archive& ar, Eigen::AffineCompact2f& m) {
|
||||
ar(m.matrix());
|
||||
}
|
||||
} // namespace cereal
|
||||
|
|
Loading…
Reference in New Issue