Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -238,9 +238,9 @@ namespace SpiceQL { ...@@ -238,9 +238,9 @@ namespace SpiceQL {
string formatString = (isComment) ? "{}\n" : "( '{}' // )"; string formatString = (isComment) ? "{}\n" : "( '{}' // )";
for(int i = 0; i < s.size()/maxLen; i++) { 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; return newString;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment