[ http://issues.apache.org/jira/browse/AXISCPP-35?page=all ] Fred Preston closed AXISCPP-35: -------------------------------
> const qualifier for std::map causes compilation error in vc7 > ------------------------------------------------------------ > > Key: AXISCPP-35 > URL: http://issues.apache.org/jira/browse/AXISCPP-35 > Project: Axis-C++ > Type: Bug > Components: Basic Architecture > Versions: current (nightly) > Environment: Operating System: Windows XP > Platform: PC > Reporter: Mark Elrod > > This seems like a different in impl. of std::map in vc7 for an > example following fragment produces the same error > #include <map> > int main() > { > std::map<const int, int> test; > return 0; > } > if you remove "const" qualifier from the key this goes away. > Why? it looks likes making the key const removes the difference between > a pair<key, value> and a const version of the same. > vc7 std::map impl. is > template<class _Kty, > class _Ty, > class _Pr = less<_Kty>, > class _Alloc = allocator<pair<const _Kty, _Ty> > > > class map{...} > but in vc6 std::map impl. is > template<class _K, class _Ty, class _Pr = less<_K>, > class _A = allocator<_Ty> > > class map {...} > Elements-key of a map has been changed so that they are immutable and a > const qualifier is no longer required. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
