mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Implement scm_to_value<bool>.
This commit is contained in:
parent
efc7346490
commit
c62b526ba0
@ -145,6 +145,12 @@ scm_to_value(SCM new_value)
|
||||
return ValueType{};
|
||||
}
|
||||
|
||||
template <> inline bool
|
||||
scm_to_value<bool>(SCM new_value)
|
||||
{
|
||||
return scm_is_true(new_value);
|
||||
}
|
||||
|
||||
template <> inline std::string
|
||||
scm_to_value<std::string>(SCM new_value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user