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 committed Oct 1, 2024
1 parent 8b0a309 commit 2da140d
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 2da140d

Please sign in to comment.