XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P2: Important
    • None
    • C/C++/Obj-C++ Support
    • None
    • Qt 4.6.1
      kubuntu 08.04

    Description

      QtCreator reports an highlight error when a class is templated with an enum, see this simple example :

      enum Color
      {
        RedColor,
        GreenColor,
        BlueColor
      };
      
      template<Color _COLOR_>
      class Page
      { };
      
      typedef Page<RedColor> RedPage_t;
      

      QtCreator wave-underlines the last line typedef Page<RedColor> RedPage_t; as if it is a type error, saying that `RedColor' is not a type name. But this is valid C++ code.

      Attachments

        Activity

          People

            raggi Roberto Raggi
            cerf Hugues Delorme
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: