I'm using C++11 using Qt Creator.
"warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]"
"error: 'nullptr' was not declared in this scope"
This is on code that works elsewhere, the relevant part being:
... = nullptr;
What might be the problem?
Is this not already a keyword, isn't it's scope global?
Open your .pro
file from inside QtCreator and add this
QMAKE_CXXFLAGS += -std=c++0x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With