HefesT / factplusplus

Automatically exported from code.google.com/p/factplusplus
0 stars 0 forks source link

unsupported std::map at() method #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by mlevin@svarnetics.org on 25 Mar 2012 at 9:11

GoogleCodeExporter commented 8 years ago
Thanks, replaced everywhere with a call to operator[]

Original comment by dmitry.t...@gmail.com on 27 Mar 2012 at 6:48