From 56df7b3916f669edd315808f92e63e7553367f1d Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 14 Feb 2025 13:04:28 +0100 Subject: Store HashFunction by value Although references give an additional information about ownership, they introduce additional design difficulties. --- src/buildtool/execution_api/common/api_bundle.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/common/api_bundle.hpp') diff --git a/src/buildtool/execution_api/common/api_bundle.hpp b/src/buildtool/execution_api/common/api_bundle.hpp index 19146f66..a08e7bba 100644 --- a/src/buildtool/execution_api/common/api_bundle.hpp +++ b/src/buildtool/execution_api/common/api_bundle.hpp @@ -51,7 +51,7 @@ struct ApiBundle final { gsl::not_null const& retry_config) const -> gsl::not_null; - HashFunction const& hash_function; + HashFunction const hash_function; gsl::not_null const local; gsl::not_null const remote; }; -- cgit v1.2.3