|[[maybe_unused]] C++17 [message #1780878]
||Mon, 29 January 2018 14:11
| Amanda M
Registered: January 2018
Version: Photon (4.8): Build id: I20180124-2000
g++ (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)
I have recently migrated from Netbeans 8.2 to Eclipse 4.8. My software is using the c++17 [[maybe_unused]] attribute to silence -Wunused-parameter warnings for virtual functions. My code compiles without any warnings but the editor shows the relevant lines as a syntax error.
I have set the compiler's dialect to ISO C++ 1y and have rebuilt the Index. Whatever I try I cannot stop the editor from reporting syntax errors. Is this because Eclipse does not yet fully support the C++17 standard? If this is the case, is it worth me waiting for this to be supported or (if it's going to be a long time) should I refactor to use a more conventional way to to silence unused parameter warnings?
[Updated on: Mon, 29 January 2018 19:14]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01759 seconds