Fix build on macOS

std::optional<T>::value() not yet available
This commit is contained in:
Lukas Matena 2020-10-13 13:50:57 +02:00
parent 571fbd23c0
commit 04e18025f9

View File

@ -51,7 +51,7 @@ namespace instance_check_internal
}
ret.cl_string = escape_strings_cstyle(arguments);
BOOST_LOG_TRIVIAL(debug) << "single instance: " <<
(ret.should_send.has_value() ? (ret.should_send.value() ? "true" : "false") : "undefined") <<
(ret.should_send.has_value() ? (*ret.should_send ? "true" : "false") : "undefined") <<
". other params: " << ret.cl_string;
return ret;
}