Export to GitHub

factplusplus - issue #48

unsupported std::map at() method


Posted on Mar 25, 2012 by Grumpy Monkey

What steps will reproduce the problem? 1. Compiling Kernel under MSVC 2008 produces tSplitExpansionRules.hpp(103) : error C2039: 'at': is not a member of 'std::map' tSplitExpansionRules.hpp(108) : error C2039: 'at': is not a member of 'std::map'

What version of the product are you using? On what operating system? FaCT++-1.5.3, Windows XP

Please provide any additional information below.

ISO/IEC 14882, Second edition 2003 does not require that method at() is defined for std::map. This requirement appears only in ISO/IEC 14882 Third edition 2011. I guess that many older standard library implementations do not define std::map at(). I suggest that at() should be avoided unless the whole FaCT++ code base is transitioned to the new standard.

Comment #1

Posted on Mar 27, 2012 by Quick Panda

Thanks, replaced everywhere with a call to operator[]

Status: Fixed

Labels:
Type-Defect Priority-Medium