Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a brand new serialization as well as reflection library in C++11 standard?

Recently, it's not impossible for boost serialization to refine with respect to stuff in C++11 standard library. Meanwhile I need a serialization as well as reflection library for my project. I searched around and didn't find any.

Therefore I'd like to know if there is existing one (hmm...it must be brand new to be C++11 compatible, not the aging MFC) or any basic, practical and explicit guidance about making my own. As far as I think, the rationale is to deduce on type with those helpers in STANDARD <type_traits>, which has already been adopted in boost serialization without std namespace.

This might be as insignificant to you as to pick pebble out of egg, but I just can't make myself happy with boost.

like image 633
Yang Avatar asked Mar 21 '13 13:03

Yang


2 Answers

To actually answer this, albeit a little late: There now is cereal which is apparently exactly what you've asked for.

like image 121
svenstaro Avatar answered Nov 19 '22 10:11

svenstaro


Well, if you want a complete serialization solution, maybe you can try ROOT reflection. But this is not a light library. On the other hand, it's a complete solution.

like image 39
Germán Diago Avatar answered Nov 19 '22 11:11

Germán Diago