From c62b526ba0cc29974f5eaee4a1c45975939020f4 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 23 Feb 2021 10:36:58 -0800 Subject: [PATCH] Implement scm_to_value. --- libgnucash/app-utils/gnc-optiondb.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libgnucash/app-utils/gnc-optiondb.i b/libgnucash/app-utils/gnc-optiondb.i index 1d5a85b3bd..c7c45817ed 100644 --- a/libgnucash/app-utils/gnc-optiondb.i +++ b/libgnucash/app-utils/gnc-optiondb.i @@ -145,6 +145,12 @@ scm_to_value(SCM new_value) return ValueType{}; } +template <> inline bool +scm_to_value(SCM new_value) +{ + return scm_is_true(new_value); +} + template <> inline std::string scm_to_value(SCM new_value) {