Skip to content

Commit

Permalink
core: Add other boost archive type
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv authored and MegMll committed Oct 1, 2024
1 parent f6b033c commit 5a22b80
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion include/pinocchio/serialization/eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ namespace boost
namespace archive
{
class binary_iarchive;
}
class xml_iarchive;
class text_iarchive;
} // namespace archive
} // namespace boost
namespace Eigen
{
Expand All @@ -102,6 +104,22 @@ namespace Eigen
Flags = 0
};
};
template<>
struct traits<boost::archive::xml_iarchive>
{
enum
{
Flags = 0
};
};
template<>
struct traits<boost::archive::text_iarchive>
{
enum
{
Flags = 0
};
};
} // namespace internal
} // namespace Eigen
#endif // MSVC with C++17
Expand Down

0 comments on commit 5a22b80

Please sign in to comment.