Bug: 2011 Beta: VC++ Intellisense doesn't understand range-based for

Discussion Bug: 2011 Beta: VC++ Intellisense doesn't understand range-based for

  • Saturday, March 03, 2012 6:29 AM
     
      Has Code
    int foo(std::vector<int>& bar)
    {
     int total = 0;
     for ( auto it : bar )
     {
      total += it;
     }
     return total;
    }

    The compiler is able to compile the code, but Intellisense has conniptions :)

All Replies

  • Saturday, March 03, 2012 8:37 AM
     
     

    On 03/03/2012 07:29, quietbrit wrote:

    int foo(std::vector<int>&    bar)
    {
        int total = 0;
        for ( auto it : bar )
        {
         total += it;
        }
        return total;
    }

    The compiler is able to compile the code, but Intellisense has conniptions :)

    It's not a bug: it's by design.

    They couldn't make it working with IntelliSense for the beta, but it will be there for RTM.

    Giovanni

  • Saturday, March 03, 2012 8:39 AM
     
     

    On 03/03/2012 09:37, Giovanni Dicanio wrote:

    On 03/03/2012 07:29, quietbrit wrote:

    int foo(std::vector<int>&         bar)
    {
             int total = 0;
             for ( auto it : bar )
             {
                total += it;
             }
             return total;
    }

    The compiler is able to compile the code, but Intellisense has conniptions :)

    It's not a bug: it's by design.

    They couldn't make it working with IntelliSense for the beta, but it will be there for RTM.

    For more official words:

    http://herbsutter.com/2012/02/29/vc11-beta-on-feb-29/#comment-4873

    Giovanni