From 04e18025f979f052a61a517d1b022417722e02c1 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 13 Oct 2020 13:50:57 +0200 Subject: [PATCH] Fix build on macOS std::optional::value() not yet available --- src/slic3r/GUI/InstanceCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/InstanceCheck.cpp b/src/slic3r/GUI/InstanceCheck.cpp index 70000f80e0..9af1f591f3 100644 --- a/src/slic3r/GUI/InstanceCheck.cpp +++ b/src/slic3r/GUI/InstanceCheck.cpp @@ -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; }