tl;dr Is there a way to overwrite the way boost.property_tree serializes bool (other built in) values?
I'm about to replace a self-written key-value storage by boost.property_tree. Therefore in the first run I changed the implementation to use boost.property_tree but now I'm hitting the wall because the old implementation used integers 0/1 to represent bool values and property_tree uses true/false.
So when serializing ptrees, I get true/false strings in my files. That make the generated files not backward-compatible with older releases of our software which is a path I'm currently not willing to walk.
I found an old post boost property tree put/get DBL_MAX which changes the methods to write/read double values but when I try the same for bool, I get a compiler error, that the struct is already defined (which is correct as it is in ptree_translator.hpp).