Verified Commit e9b6f3c8 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

serialize/tensor: fix types

parent 40eab07e
......@@ -85,19 +85,19 @@ namespace boost
#ifdef PINOCCHIO_WITH_EIGEN_TENSOR_MODULE
template <class Archive, typename _IndexType, std::size_t _NumIndices>
template <class Archive, typename _IndexType, int _NumIndices>
void save(Archive & ar, const Eigen::DSizes<_IndexType,_NumIndices> & ds, const unsigned int version)
{
save(ar,static_cast<const Eigen::array<_IndexType,_NumIndices> &>(ds),version);
}
template <class Archive, typename _IndexType, std::size_t _NumIndices>
template <class Archive, typename _IndexType, int _NumIndices>
void load(Archive & ar, Eigen::DSizes<_IndexType,_NumIndices> & ds, const unsigned int version)
{
load(ar,static_cast<Eigen::array<_IndexType,_NumIndices> &>(ds),version);
}
template <class Archive, typename _IndexType, std::size_t _NumIndices>
template <class Archive, typename _IndexType, int _NumIndices>
void serialize(Archive & ar, Eigen::DSizes<_IndexType,_NumIndices> & ds, const unsigned int version)
{
split_free(ar,static_cast<Eigen::array<_IndexType,_NumIndices> &>(ds),version);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment