This commit is contained in:
2026-09-15 17:24:55 +03:00
parent d0502e0df0
commit eb4fa72d4b
2 changed files with 79 additions and 3 deletions

View File

@@ -266,8 +266,10 @@ protected:
return val;
} else if constexpr (std::constructible_from<UT, std::filesystem::path>) {
return UT(val);
} else if constexpr (std::is_pointer_v<std::decay_t<UT>> && std::same_as<std::filesystem::path::value_type*,
std::decay_t<UT>>) { // char*/wchar_t*
} else if constexpr (std::is_pointer_v<std::decay_t<UT>> &&
(std::same_as<std::filesystem::path::value_type*, UT> ||
std::same_as<const std::filesystem::path::value_type*,
UT>)) { // char*/wchar_t*
return val.c_str();
} else if constexpr (snplib::snplib_char_range_c<UT>) {
using iter_t = std::filesystem::path::value_type*;