Eclipse CDT complains that the following is syntactically wrong, although it compiles fine with g++-7 -std=c++17:
static_assert(std::is_pod<T>::value);
while it doesn't complain on the following:
static_assert(std::is_pod<T>::value, "not a POD");
I realize that the prior to C++17 static_assert required a second message parameter. I'm curious if Eclipse could be configured to recognize the first form? (A workaround is of course to use the C++11 form.)
On a side note, g++ 7.1 is OK with both forms, even with -std=c++11.
Thanks!
Aucun commentaire:
Enregistrer un commentaire