Как превратить 'const boost :: filesystem2 :: path' в 'const char *'?
Попробуйте использовать path::string().c_str()
path::string().c_str()