535 reputation
518
bio website
location
age 27
visits member for 2 years, 5 months
seen Sep 18 at 9:47

Sep
17
awarded  Popular Question
Jul
21
awarded  Popular Question
Jul
2
awarded  Curious
May
7
awarded  Notable Question
Apr
8
awarded  Yearling
Mar
2
awarded  Critic
Feb
5
awarded  Notable Question
Dec
16
awarded  Notable Question
Aug
28
awarded  Popular Question
Jul
28
awarded  Popular Question
Jul
15
awarded  Popular Question
Jun
13
awarded  Caucus
Apr
15
awarded  Popular Question
Apr
8
awarded  Yearling
Mar
17
awarded  Citizen Patrol
Mar
16
comment C++ formatted serialization
I think boost serialization doesn't support formatted output to something like JSON or lua, right? I'm probably gonna use it for save games although I hate boost. Another option of course is to use a reflection library like Mirror, but I'm trying to avoid third party libraries for educational purposes.
Mar
15
comment C++ formatted serialization
I hope I didn't sound offensive. I would definitely like to see how you handle the assembly in your code and if it would be possible to do something similar in C++. I would think you would need at least some kind of reflection to achieve this, no?
Mar
15
comment C++ formatted serialization
Eventually I want to be able to do both. I've seen your blog posts on how you assemble entities by reading a descriptions from custom formatted files. I want to do something similar. Unfortunately, what I'm asking is more implementation specific rather than about the general idea. I think that implementing such serialization in Java is much easier.
Mar
15
comment C++ formatted serialization
@Chunk-e-Yamani Thank you very much for your feedback. You are indeed correct that the way I implemented it in the example code, problems can be caused during static initialization because of the order of initialization. I will definitely check your suggestion if I decide to go with the method I presented. You also mention it's very complex and might later give you a headache. Do you have any alternatives in mind which might be less complex?
Mar
15
asked C++ formatted serialization