Emitting filesystem::path

Open
#1,131 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Start by checking the C++ standard rules for adding overloads to std::filesystem, then review yaml-cpp’s emitter overloads and argument-dependent lookup behavior. The issue contains no file or test pointers; done means establishing a standards-compliant way to emit std::filesystem::path and documenting or implementing that approach.

Written by the indexing model from the issue text.

Description

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).

Dominant language
C++
Stars
6.1k
Forks
2.2k
Avg merge
22h 2m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jbeder/yaml-cpp

All issues in jbeder/yaml-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.