Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SFINAE to stop paths from logging without using u8string #1697

Merged
merged 1 commit into from
Nov 12, 2021

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Nov 11, 2021

Change

Use SFINAE to stop any std::filesystem::path from using the generic template function and force them to use the function that outputs the u8string instead. This allows the non-const method to be deleted.

Validation

Verified that the recently added std::optional<std::filesystem::path>::value_or call is appropriately going to the path function.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner November 11, 2021 23:48
@JohnMcPMS JohnMcPMS merged commit 412408a into microsoft:master Nov 12, 2021
@JohnMcPMS JohnMcPMS deleted the fixpathlog branch November 12, 2021 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants