/sources/extern/openxr/build/OpenXR-SDK-release-1.0.22/mingw_stdthreads/mingw.shared_mutex.h:306:12: error: ‘shared_lock’ has not been declared in ‘std’
306 | using std::shared_lock;
I tried upgrading mingw (version 10) but it's not working.
The offending line is mingw_stdthreads/mingw.shared_mutex.h:306
#if __cplusplus >= 201402L
using std::shared_lock;
#else
This means c++14 or higher is used but std::shared_lock does not exist. What can be done to fix this?