I want to use #include <cstddef>
and std::byte
from c++17 on eclipse photon. I have configured the project to compile using c++17 >> project >> properties >> C/C++ Build >> settings >> GCC C++ Compiler >> Dialect >> Other dialect flags
>> -std=c++17
and I have also tried -std=c++1z
. My program below can use <cstddef>
library, but the line with std::byte
does not compile. Eclipse says Type 'std::byte' could not be resolved
.
How do I make eclipse support C++17?
#include <cstddef>
int main(void) {
std::byte myByte { 2 };
}
Thanks