Here is my code:
fs::path datadir = ...; std::string dataDirOption((boost::format("--datadir=%1%") % datadir).str());
For datadir=="c:/db" I get dataDirOption=="--datadir=\"c:/db\"" instead of "--datadir=c:/db"
Is it possible to tell boost::filesystem::path skip quotation marks when formatting?
Now I know that I can replace datadir.string() with datadir and get rid of the quotes this way, but I'm wondering if I can do this without an extra line.
Thanks.
source share