Implement scm_to_value<bool>.

This commit is contained in:
John Ralls 2021-02-23 10:36:58 -08:00
parent efc7346490
commit c62b526ba0

View File

@ -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)
{