gnucash stable: Bug 799638 - error: call to non-'constexpr' function
John Ralls
jralls at code.gnucash.org
Sun Jul 13 14:09:52 EDT 2025
Updated via https://github.com/Gnucash/gnucash/commit/d0e7b83d (commit)
from https://github.com/Gnucash/gnucash/commit/2b0c9030 (commit)
commit d0e7b83d364228ee9c2e7ca1d98e2cc21f56fbcd
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Jul 13 11:05:34 2025 -0700
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.
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<double, double>
+static std::tuple<double, double>
periods_per_year( LoanAssistantData *ldd)
{
double ppy = 0.0, periods = 1.0;
Summary of changes:
gnucash/gnome/assistant-loan.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list