From 4c4736d455166dd271ce9775ae03982dcd47bd05 Mon Sep 17 00:00:00 2001 From: Francisco Altoe Date: Mon, 7 Mar 2022 15:21:59 -0300 Subject: [PATCH] cast path separator to std::path::value_type --- src/dic/variable_descriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dic/variable_descriptor.cpp b/src/dic/variable_descriptor.cpp index 5c4150e..3facb5c 100644 --- a/src/dic/variable_descriptor.cpp +++ b/src/dic/variable_descriptor.cpp @@ -19,7 +19,7 @@ std::optional VariableDescriptor::Declaration:: else if (match[1] == "LNG") t = Declaration::Type::LNG; else if (match[1] == "PCK") t = Declaration::Type::PCK; std::string p = match[2]; - std::replace(begin(p), end(p), '\\', fs::path::preferred_separator); + std::replace(begin(p), end(p), fs::path::value_type('\\'), fs::path::preferred_separator); size_t s = std::stoi(match[3]); return Declaration{t, p, s}; }