به صورت زیر عمل کنید:
namespace fs= boost:filesystem; auto result = (fs::path(folder) / fs::path(file_name)).string();