2

I'm using emacs 24.3 and I've encountered the following problem with emacs indentation engine and the new C++11 initializer lists. Let me give you an example: Consider a class Class which has a member of type std::vector<int> named m_vector. Emacs indents the constructor as follows:

Class() : m_vector( { 1,
            2,
            3 } ){ }

whereas I would expect this syntax:

Class() : m_vector( { 1,
                      2,
                      3 } ){ }

Is there a simple fix for this?

TemplateRex
  • 69,038
  • 19
  • 164
  • 304
elemakil
  • 3,681
  • 28
  • 53
  • 2
    good question. I doubt it. I also find emacs not supporting several C++11 features in the way I would like it to. – Walter Jan 09 '14 at 13:50

1 Answers1

0

So file a bug.

The bug tracker for GNU Emacs is here: http://debbugs.gnu.org/Emacs.html

Quuxplusone
  • 23,928
  • 8
  • 94
  • 159