Type array not recognized [SOLVED]



  • This is an issue with QT Creator, don't know if this is the correct forum...

    I have this code

    #include <array>
    array<int, 10> a;
    

    The array type is not recognized by QT Creator (colour does not change, compiler gives erorrs).

    When on the include line "Follow symbol under cursor" is executed the include file is opened. So the include file is there, QT Creator knows how to open it and still class array is not recognized.
    What's happening?



  • Missing

    using namespace std;
    

    Duh!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.