Code outlining bug with templates resulting in >>

129 Views Asked by At

Has anyone noticed that when the C++ editor encounters >> brackets that close a template parameter list, the C++ editor code outliner stops working for all code beyond this line? The only solution that works so far is to put a space between the >> pair. Here's some code to cut and paste in. Can someone check it's also showing this odd behavior in their VS install too? Just wondering if it's specific to my installation + selection of extensions. I'm using VS 2012 with update 2:

  #pragma once
  #include "precompiled.h"
  #include "common.h"

  template<typename T>
  class ApplicationFrame : public CWindowImpl<ApplicationFrame<T>, CWindow, CWinTraits <WS_OVERLAPPEDWINDOW | WS_VISIBLE>> {

  public:

     ApplicationFrame() { }

     virtual ~ApplicationFrame() {

        if ( m_hWnd ) {
           DestroyWindow();
        }
     }
  };
0

There are 0 best solutions below