diff options
-rw-r--r-- | owning_mutex.h | 2 |
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; |