yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

Emitting filesystem::path

Open philtherobot opened this issue 3 years ago • 0 comments

How can I emit a std::filesystem::path? I was thinking of adding:

namespace std::filesystem {
YAML::Emitter & operator <<(YAML::Emitter & emitter, std::filesystem::path const & p);
}

But I am not sure the Standard allow this. (Required in that namespace because ADL is used to find the overload).

philtherobot avatar Sep 12 '22 20:09 philtherobot