1
Vote

warning : field 'm_collection' will be initialized after field 'm_pos' [-Wreorder]

description

Compiling with Clang shows a couple of warnings due to the order of the members in the initialization list doesn't match the declaration order.

Should be:
CTypeMapIterator(M& collection, POSITION const pos) :
    m_pos(pos),
    m_collection(collection)

CTypeMapConstIterator(M const & collection, POSITION const pos) :
    m_pos(pos),
    m_collection(collection)

comments