From da30168af3cb4f4ad3291de395e047880f0b3774 Mon Sep 17 00:00:00 2001
From: Kelvin Rodriguez <krodriguez@usgs.gov>
Date: Mon, 11 Dec 2023 15:09:26 -0700
Subject: [PATCH] fixed issue with FMT constevals causing compile errors with
 C++20 (#17)

---
 SpiceQL/src/io.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SpiceQL/src/io.cpp b/SpiceQL/src/io.cpp
index 680cca1..b3c5439 100644
--- a/SpiceQL/src/io.cpp
+++ b/SpiceQL/src/io.cpp
@@ -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;
     };
-- 
GitLab