mirror of
https://github.com/fraillt/bitsery.git
synced 2026-06-08 08:13:56 +00:00
polymorphism in progress
This commit is contained in:
committed by
Mindaugas
parent
1ca45aab79
commit
275c4138ee
@@ -70,6 +70,10 @@ using InputAdapter = InputBufferAdapter<Buffer>;
|
||||
// s.template context<MyContext>();
|
||||
using Context = std::tuple<int, std::pair<uint32_t, uint32_t>>;
|
||||
|
||||
//NOTE:
|
||||
// if your context has no additional usage outside of serialization flow,
|
||||
// then you can create it internally via configuration (see inheritance.cpp)
|
||||
|
||||
int main() {
|
||||
|
||||
MyTypes::GameState data{};
|
||||
|
||||
Reference in New Issue
Block a user