boost serialization of mpfr_float

前端 未结 2 1347
旧时难觅i
旧时难觅i 2021-01-22 20:04

I would like to serialize a custom class containing an boost::multiprecision::mpfr_float as a member. It says here in the Boost.Serialization documentation that a type T<

2条回答
  •  没有蜡笔的小新
    2021-01-22 20:38

    The passthrough support implies that you have to add the serialization for the backend type, indeed.

    You can use the same approach as I showed in this answer:

    • How to de/serialize a map with template class using boost::multiprecision::mpq_rational

    where I show how to (de)serialize mpq_rational

提交回复
热议问题