lib+guile: use Mu::Option, not std::optional

We need the extensions, and/or let's use _one_ optional implementation everywhere.
This commit is contained in:
Dirk-Jan C. Binnema
2022-03-28 08:58:04 +03:00
parent 5a28cdfba4
commit 27ebfb3b3c
11 changed files with 94 additions and 90 deletions

View File

@ -213,7 +213,7 @@ SCM_DEFINE(get_field,
#undef FUNC_NAME
static SCM
contacts_to_list(MuMsg *msg, std::optional<Field::Id> field_id)
contacts_to_list(MuMsg *msg, Option<Field::Id> field_id)
{
SCM list{SCM_EOL};
@ -252,7 +252,7 @@ SCM_DEFINE(get_contacts,
if (CONTACT_TYPE == SCM_BOOL_F)
return SCM_UNSPECIFIED; /* nothing to do */
std::optional<Field::Id> field_id;
Option<Field::Id> field_id;
if (CONTACT_TYPE == SCM_BOOL_T)
field_id = {}; /* get all */
else {