c++ - When should I use serialization library in boost -


recently, found boost's serialization library. when use save data file, found library not expected be.
because i'm not using interface iserializable , implement methods save , load of interface. instead, should add friend class, , implement function template. personally, think it's ugly ( although design idea may kind of nice , tricky). , when try store 2 points text file, file this:
enter image description here

obviously it's hard human read.
question is:
1. in kind of situation should use library serialization work. example, should use store 3d points file? or should use in more complex scenarios.
2. there way me control format of output file? because think figure above hard understand.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -