Browse Source

cmStringAlgorithms: Fix C++23 ambiguous overload error

Nicolas van Kempen 4 months ago
parent
commit
9fac84dd7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmStringAlgorithms.h

+ 1 - 1
Source/cmStringAlgorithms.h

@@ -167,7 +167,7 @@ void cmTokenize(OutIt outIt, cm::string_view str, Sep sep,
   }
   // clang-format on
   if (!hasTokens && mode == cmTokenizerMode::Legacy) {
-    *outIt = {};
+    *outIt = StringT{};
   }
 }