Web lists-archives.com

Re: Code in peace or How to lint a complete repository?




El 1 mar. 2018, a la(s) 15:04, Michael Heidelbach <ottwolt@xxxxxxxxx> escribió:

On 28.02.2018 22:41, Elvis Angelaccio wrote:

This may be right, but it looks weird to me:

-    QMap<QByteArray, QVector<PositionInfo>> positionDb;
+    QMap<QByteArray, QVector<PositionInfo> > positionDb;

In C++98 the ">>" is invalid, you need the space in "> >" for correct parsing. In C++11 this is handled correctly without needing a space. I think we require C++11 everywhere nowadays; I would remove the space.

-- 
Nicolás