c++14 not working

Hi!
I just upgraded to mingw 5.2 and trying to use a lighting library which is using c++14 features, but when i try to compile i get "'make_unique' is not a member of 'std'"

I created a flag -std=c++14 in project build options -> compiler flags, and it doesn't complain about it. I tried changing to -std=c++16, and then it wouldn't run, so it does recognize the command.
So why do i still get this error?

Thanks.
Last edited on
Just because your compiler supports the features of C++14 doesn't mean that the standard library implementation does too. Depending on where you got your compiler, you may have a version whose standard library does not have an implementation of std::make_unique yet.

On Windows, I use nuwen MinGW:
http://nuwen.net/mingw.html
It supports std::make_unique just fine.
Topic archived. No new replies allowed.