Skip to content

Lonartie/tt_fb_serialization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trainee task - find bug - serialization

This is a hard one!
You need to find the bugs which are well hidden in plain sight.
As always, make as few changes as possible.
Keep an eye on you style and memory issues.

Background:

This repository contains some code for automatic serialization of objects.
It uses a custom (incomplete) json serializer.
The AutoSerializable.h file is made out of mostly templated methods.

Requirements:

  • You are allowed to modify all files except for the main.cpp file

Expected output:

{"m_innerClass":{"m_bool":true,"m_stringList":["Hello","1"]},"m_innerClassList":[{"m_bool":false,"m_stringList":["World","2"]},{"m_bool":true,"m_stringList":["I <3 templates","3"]}]}
{"m_innerClass":{"m_bool":true,"m_stringList":["Hello","1"]},"m_innerClassList":[{"m_bool":false,"m_stringList":["World","2"]},{"m_bool":true,"m_stringList":["I <3 templates","3"]}]}

(Needless to say that it should not crash)

Happy coding!

About

trainee task - fix bug - serialization

Topics

Resources

License

Stars

Watchers

Forks