From 3a5a02e0c48957c3a66130abdae0ff7b3d12905f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 11 Feb 2025 14:00:42 +0100 Subject: BackMap: make non-copyable and non-movable ...and use std::unique_ptr for construction instead of std::optional. --- src/buildtool/execution_engine/executor/executor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/execution_engine/executor/executor.hpp') diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index c32e2c3f..8519639f 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -304,7 +304,7 @@ class ExecutorImpl { *entry.second->Size(), entry.second->IsTree()); }); - if (not back_map.has_value()) { + if (back_map == nullptr) { return false; } -- cgit v1.2.3