Skip to content

Commit

Permalink
ConsoleTools: Don't initialize std::regex from an initializer list
Browse files Browse the repository at this point in the history
My local build machine didn't mind, but the CI compiler did not like it.
  • Loading branch information
drunderscore committed Nov 21, 2024
1 parent 7d23e44 commit 0a3a52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CastingEssentials/Modules/ConsoleTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void ConsoleTools::AddFilter(const CCommand& command)

try
{
regex = {command[1], std::regex_constants::ECMAScript | std::regex_constants::optimize};
regex = std::regex(command[1], std::regex_constants::ECMAScript | std::regex_constants::optimize);
}
catch (const std::regex_error& error)
{
Expand Down

0 comments on commit 0a3a52c

Please sign in to comment.