I've seen some code recently that initializes non-POD members via initializers. 
For example, SVGAElement has:

    AttributeOwnerProxy m_attributeOwnerProxy { *this };

I find this a little disorientating, and would normally expect to see this in 
the constructor as m_attributeOwnerProxy(*this), as it makes it easier to find 
places to set breakpoints, and the ordering of initialization is easier to see.

Are people OK with this pattern, or should we discourage it via the style 
guidelines (and style checker)?


webkit-dev mailing list

Reply via email to