Unverified Commit da30168a authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

fixed issue with FMT constevals causing compile errors with C++20 (#17)

parent a4a05386
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -238,9 +238,9 @@ namespace SpiceQL {
      string formatString = (isComment) ? "{}\n" : "( '{}' // )";

      for(int i = 0; i < s.size()/maxLen; i++) {
        newString.append(fmt::format(formatString, s.substr(i*maxLen, maxLen)) + "\n");
        newString.append(fmt::format(fmt::runtime(formatString), s.substr(i*maxLen, maxLen)) + "\n");
      }
      newString.append(fmt::format(formatString, s.substr(s.size()-(s.size()%maxLen), s.size()%maxLen)));
      newString.append(fmt::format(fmt::runtime(formatString), s.substr(s.size()-(s.size()%maxLen), s.size()%maxLen)));

      return newString;
    };