It is possible to append multiple paths in a row using the / operator:
/
std::filesystem::path p1{"A"}; auto p2 = p1 / "B" / &q