You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "John Hawkins (JIRA)" <ax...@ws.apache.org> on 2004/10/26 15:07:43 UTC

[jira] Resolved: (AXISCPP-35) const qualifier for std::map causes compilation error in vc7

     [ http://issues.apache.org/jira/browse/AXISCPP-35?page=history ]
     
John Hawkins resolved AXISCPP-35:
---------------------------------

     Assign To:     (was: Axis Developers Mailing List)
    Resolution: Fixed

I believe this is fixed by the renaming of the map which was done in 1.2

> 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira