
4 Mar
2011
4 Mar
'11
4:52 p.m.
Hi all, With boost::program_options::parse_config_file, is there any way to escape a literal hash symbol ('#')? I want to set std::string-based option 'foo' to contain the var 'bar#baz', but the sensible-seeming foo=bar\#baz fails in that 'foo' only contains 'bar'. Other variants on quoting and escaping also fail. The source for common_config_file_iterator::get() in config_file.cpp seems to indicate this isn't possible. Can anyone confirm or deny that? Thanks, Rhys