diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/src/jsonrpc/RemoteEndPoint.cpp')
-rw-r--r-- | graphics/asymptote/LspCpp/src/jsonrpc/RemoteEndPoint.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/asymptote/LspCpp/src/jsonrpc/RemoteEndPoint.cpp b/graphics/asymptote/LspCpp/src/jsonrpc/RemoteEndPoint.cpp index e8bdc073f3..b501d35a18 100644 --- a/graphics/asymptote/LspCpp/src/jsonrpc/RemoteEndPoint.cpp +++ b/graphics/asymptote/LspCpp/src/jsonrpc/RemoteEndPoint.cpp @@ -15,6 +15,7 @@ #include "LibLsp/JsonRpc/ScopeExit.h" #include "LibLsp/JsonRpc/stream.h" #include <atomic> +#include <optional> #include <boost/asio/thread_pool.hpp> #include <boost/asio/post.hpp> @@ -103,7 +104,7 @@ namespace lsp { /// (If the context is within multiple nested tasks, true if any are cancelled). /// Always zero if there is no active cancelable task. /// This isn't free (context lookup) - don't call it in a tight loop. - boost::optional<CancelMonitor> getCancelledMonitor(const lsRequestId& id, const Context& ctx = Context::current()){ + optional<CancelMonitor> getCancelledMonitor(const lsRequestId& id, const Context& ctx = Context::current()){ for (const CancelState* state = ctx.get(g_stateKey); state != nullptr; state = state->parent) { |