Hello,
class FWindowsRWLock
{
public:
FWindowsRWLock(const FWindowsRWLock&) = delete;
FWindowsRWLock& operator=(const FWindowsRWLock&) = delete;
...
This prevents generating move constructor/assignment. I understand why it’s non-copyable, but may you make it movable please? I have instances that require to be moved, but I encounter compilation errors because the lock cannot be moved and I have no other solutions
...
FWindowsRWLock(FWindowsRWLock&& Other)
: Mutex(Other.Mutex)
{
Other.Mutex.Ptr = nullptr;
}
FWindowsRWLock& operator=(WindowsRWLock&& Other)
{
Mutex = Other.Mutex
Other.Mutex.Ptr = nullptr;
}
...