CLion cannot resolve namespace memeber "make_unique"

Answered

hi

CLion's code analysis can parse all the my code base except this 'make_unique' function:

I have std=c++11 in my CMakeList.txt, so I don't understand why this is happening.

Does anyone here have the same issue?

 

thanks!

 

2
4 comments

Could you please share an example? It would help us a lot.

0
Avatar
Permanently deleted user

It's c++14 feature. However, even when I turn on `set(CMAKE_CXX_STANDARD 14)`, `make_unique<MyClass>(...)` is still not resolved.

0
Avatar
Permanently deleted user

I have the same issue with CMAKE_CXX_STANDARD 14

0

Hi all!

I've just tested the example from cppreference.com with CLion 2017.2.3 and CLion 2017.3 and everything seems to be ok:

So please specify the CLion version and the compiler that you use, and provide us with the code example and the screenshot of the error. Thanks!

0

Please sign in to leave a comment.