From d0e7b83d364228ee9c2e7ca1d98e2cc21f56fbcd Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 13 Jul 2025 11:05:34 -0700 Subject: [PATCH] Bug 799638 - error: call to non-'constexpr' function Recurrences aren't instantiated at compile time so there's no benefit to making periods_per_year constexpr. --- gnucash/gnome/assistant-loan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome/assistant-loan.cpp b/gnucash/gnome/assistant-loan.cpp index 3b96e96080..81fa712c2c 100644 --- a/gnucash/gnome/assistant-loan.cpp +++ b/gnucash/gnome/assistant-loan.cpp @@ -2393,7 +2393,7 @@ std::string to_str_with_prec (const gdouble val) #endif } -static constexpr std::tuple +static std::tuple periods_per_year( LoanAssistantData *ldd) { double ppy = 0.0, periods = 1.0;