I am trying to have the hash sign ('#') in a value of a configuration file.
My use case is a music program in which the values give the tuning of a guitar score. Therefore, supporting '#' in the values is mandatory and supports no workaround, unlike flats, which can be simulated using a 'b'.
I have tried the following syntaxes:
tuning.1=d#
tuning.1=d\#
tuning.1=d##
In all those cases, the key tuning.1
receives the value d
, which is of course not the intention.
Is it possible to have a hash sign in the value of a key? I can't seem to find anything about it in the boost documentation or online. Or should I resort to writing a custom parser?