diff --git a/Kernel/Locking/SpinlockProtected.h b/Kernel/Locking/SpinlockProtected.h index 39a7b134b2..dd0344708c 100644 --- a/Kernel/Locking/SpinlockProtected.h +++ b/Kernel/Locking/SpinlockProtected.h @@ -46,7 +46,11 @@ private: auto lock_mutable() { return Locked(m_value, m_spinlock); } public: - SpinlockProtected() = default; + template + SpinlockProtected(Args&&... args) + : m_value(forward(args)...) + { + } template decltype(auto) with(Callback callback) const