Serialization in the code intended to compile without RTTI

70 views
Skip to first unread message

Anton Menshov

unread,
Jul 1, 2020, 9:32:58 PM7/1/20
to cereal serialization library
I have the code that uses serialization via cereal. However, this code will have to be compiled without RTTI support (-fno-rtti).

From what I understand, according to https://uscilab.github.io/cereal/polymorphism.html cereal uses RTTI to perform serialization of polymorphic types.
I wonder:
  1. Is it possible to use cereal when serializing non-polymorphic types?
  2. Are there additional step one can do to still perform serialization of polymorphic types with cereal without RTTI?
By today, I found only this question on StackOverflow, which is not answered and does not give me too much hope.

Any thoughts?

Thanks!
Reply all
Reply to author
Forward
0 new messages