Skip to content

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

Merged
JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:fixpathlog
Nov 12, 2021
Merged

JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:fixpathlog

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Nov 11, 2021 •

Copy link
Copy Markdown
Member

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