I have a problem with passing a mutex to my class. I have a class named `Test` with the a member variable called `m_Mutex`. In the constructor I want to transfer the parameter mutex to `m_Mutex`.

My class:

```
#include <mutex>

class Test
{
public:
    Test(mutex &mtx) :
        m_Mutex(mtx)
    {
    }

private:
    mutex m_Mutex;
};

```

My main:

```
int main()
{
   mutex mutex1;
   Test t(mutex1);
   return 0;
} 

```

Error:

> 
> function "std::mutex::mutex(const std::mutex &)" (declared at line 88
>  of "c:\Program Files (x86)\Microsoft Visual
>  Studio\2017\Professional\VC\Tools\MSVC\14.11.25503\include\mutex")
>  cannot be referenced -- it is a deleted function 
> 
> 
> 

Why am I getting this error and how can I fix it that I am able to pass the mutex?