try to get a more recent mingw. this one works:
C:\Users\admin>g++ --version
g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
try to get a more recent mingw. this one works:
C:\Users\admin>g++ --version
g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0