As per the boost documentation char is used on unix systems for boost::filesystem::path
internal value type. But on linux the following code compiles and also works properly.
const std::wstring &m_blobStore;
boost::filesystem::path dir(m_sharePath.begin(), m_sharePath.end());
cout<<dir.string(); // prints the value stored as wstring.
Expectation is that if the m_blobStore
has been string
instead of wstring
only then it should work on linux machines. Can this behaviour be relied on.