#include <boost/filesystem.hpp>
#include <iostream>
#include <string>

int main() {
    boost::filesystem::path myPath("/path/to/file");

    // Convert the path to a std::string
    const std::string& pathString = myPath.string();  // or myPath.generic_string()

    // Print the result
    std::cout << "Path as string: " << pathString << std::endl;

    return 0;
}

