I'm using Eclipse Mars.2 Release (4.5.2) in Windows. C++11 works well, but for C++14, I can build and run a project using C++14 features without any error, but the IDE always highlights errors in the lines using C++14 features, it makes me difficult to detect real errors.
E.g. When using std::make_unique, it always highlight a bug symbol with notification "Symbol 'make_unique' could not be resolved".
How do I enable C++14 Syntax checking in Eclipse?
My current configuration:
Project property -> C/C++ build -> Setting -> Preprocessor -> Defined symbols:
- __GXX_EXPERIMENTAL_CXX0X__
- __cplusplus=201403L
Project property -> C/C++ build -> Setting -> Miscellaneous-> other flags:
- -c -fmessage-length=0 -std=c++14