aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-03-02 10:36:58 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-03-02 10:36:58 +0100
commite1c0fecd84ada1d4a363689c5a89e1e97a2510f6 (patch)
tree453f0d8b847ce4a9419d6234d9eee24b98ba8cd9
parent7a91597392c64ec8bd2b3cdfc44df98b928f41d3 (diff)
downloadcpp-utils-e1c0fecd84ada1d4a363689c5a89e1e97a2510f6.tar.gz
cpp-utils-e1c0fecd84ada1d4a363689c5a89e1e97a2510f6.zip
mutex: fix universal reference
-rw-r--r--owning_mutex.h2
1 files changed, 1 insertions, 1 deletions
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 <typename T, typename M = std::mutex>
struct owning_mutex {
template <typename... Args>
- constexpr explicit owning_mutex(Args... args)
+ constexpr explicit owning_mutex(Args&&... args)
: m_val{std::forward<Args>(args)...} {}
owning_mutex(const owning_mutex&) = delete;