https://github.com/melardev/cppboostserializationsnippets
Cpp Boost Serialization Snippets
https://github.com/melardev/cppboostserializationsnippets
boost cpp demos examples serialization snippets
Last synced: over 1 year ago
JSON representation
Cpp Boost Serialization Snippets
- Host: GitHub
- URL: https://github.com/melardev/cppboostserializationsnippets
- Owner: melardev
- License: mit
- Created: 2019-05-15T18:01:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-20T18:08:59.000Z (almost 7 years ago)
- Last Synced: 2025-01-25T23:37:29.285Z (over 1 year ago)
- Topics: boost, cpp, demos, examples, serialization, snippets
- Language: C++
- Homepage: http://melardev.com
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
This repository contains Boost Cpp Serialization snippets, I have actually a lot more snippets
but I have to refactor them before publishing so you can follow me on Github to stay tuned.
# Getting Started
For Cpp nowadas there are no excuses to setup your environment in a painless manner, this is why
I recommend using vcpkg, which is what I use, with `vcpkg install boost:x64-windows-static` it downloaded and built
boost libraries. Then I open the vcproject file and add the following inside the Globals section:
```xml
<-- Find this tag, then in that tag add the two VcpkgTriplet tags-->
............
x86-windows-static
x64-windows-static
..........
```
This is how I set up my environment, I strongly encourage you to do the same, take a time reading about [vcpkg](https://github.com/microsoft/vcpkg)
and enjoy modern Cpp made easy.
# Notes
- BOOST_SERIALIZATION_SPLIT_FREE should always be executed outside any namespace.
- Don't forget the appropiate includes, if you serialize a shared_ptr you need the serialization/shared_ptr.hpp
header file.
- Never use BOOST_EXPORT_CLASS for a base class.
# Social Media
- [Youtube](https://youtube.com/Melardev)
- [Twitter](https://twitter.com/@melardev)
- [Instagram](https://instagram.com/melar_dev)
# Resources
- [The official docs](https://www.boost.org/doc/libs/1_69_0/libs/serialization/example/)
# TODO
- Port to CMake