qt-ordered-map
qt-ordered-map copied to clipboard
A Qt based implementation of an ordered map

Fixes https://github.com/mandeepsandhu/qt-ordered-map/issues/28
The line here: https://github.com/mandeepsandhu/qt-ordered-map/blob/e1a26e336a3afe17f160f17520259bded9ddffeb/src/orderedmap.h#L118 duplicates: https://github.com/mandeepsandhu/qt-ordered-map/blob/e1a26e336a3afe17f160f17520259bded9ddffeb/src/orderedmap.h#L47 and that upsets some compilers:  luckily the fix is trivial...! :grinning:
``` 3rdparty/qt-ordered-map/src/orderedmap.h:37: warning: ‘template class QLinkedList’ is deprecated: Use std::list instead [-Wdeprecated-declarations] In file included from ../src/mudlet.h:69, from ../src/dlgColorTrigger.cpp:31: ../src/../3rdparty/qt-ordered-map/src/orderedmap.h:37:22: warning: ‘template class QLinkedList’ is deprecated: Use std::list instead [-Wdeprecated-declarations]...
1. fix msvc2013+qt5.6.2 compile error. 2. use Q_COMPILER_RVALUE_REFS to replace QT_VERSION >= 0x050200.
Enable implicit sharing in OrderedMap (similar to other Qt containers).