From e1c0fecd84ada1d4a363689c5a89e1e97a2510f6 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 2 Mar 2024 10:36:58 +0100 Subject: mutex: fix universal reference --- owning_mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'owning_mutex.h') diff --git a/owning_mutex.h b/owning_mutex.h index f39b2d0..481cec6 100644 --- a/owning_mutex.h +++ b/owning_mutex.h @@ -32,7 +32,7 @@ struct guard; template struct owning_mutex { template - constexpr explicit owning_mutex(Args... args) + constexpr explicit owning_mutex(Args&&... args) : m_val{std::forward(args)...} {} owning_mutex(const owning_mutex&) = delete; -- cgit v1.2.3