axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lilantha Darshana" <Lilan...@virtusa.com>
Subject RE: DETAILS: compile axis C++ with vc7
Date Fri, 02 Jan 2004 04:50:28 GMT
mmm....

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.

Please submit a bug in bugzilla. 
http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Axis-C%2B%2B

Thanks
-Lilantha




> -----Original Message-----
> From: Mark B. Elrod [mailto:elrod@vindicia.com]
> Sent: Thursday, January 01, 2004 12:18 AM
> To: axis-dev@ws.apache.org
> Subject: DETAILS: compile axis C++ with vc7
>
>
> I am attempting to compile the Calculator Example under vc++ 7. I am
> getting the following error output:
>
> Calculator.cpp
> c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xmemory(87) :
> error C2535: 'std::allocator<_Ty>::pointer
> std::allocator<_Ty>::address(std::allocator<_Ty>::reference) const' :
> member function already defined or declared
>          with
>          [
>              _Ty=const std::_Tree<std::_Tmap_traits<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE,std::less<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >>,std::allocator<std::pair<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE>>,false>>::key_type
>          ]
>          c:\Program Files\Microsoft Visual Studio
> .NET\Vc7\include\xmemory(81) : see declaration of
> 'std::allocator<_Ty>::address'
>          with
>          [
>              _Ty=const std::_Tree<std::_Tmap_traits<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE,std::less<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >>,std::allocator<std::pair<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE>>,false>>::key_type
>          ]
>          c:\Program Files\Microsoft Visual Studio
> .NET\Vc7\include\xtree(122) : see reference to class template
> instantiation 'std::allocator<_Ty>' being compiled
>          with
>          [
>              _Ty=const std::_Tree<std::_Tmap_traits<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE,std::less<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >>,std::allocator<std::pair<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE>>,false>>::key_type
>          ]
>          c:\Program Files\Microsoft Visual Studio
> .NET\Vc7\include\map(77) : see reference to class template instantiation
> 'std::_Tree<_Traits>' being compiled
>          with
>          [
>              _Traits=std::_Tmap_traits<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE,std::less<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >>,std::allocator<std::pair<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE>>,false>
>          ]
>          c:\Documents and Settings\elrod\My
> Documents\Source\java\axis-c-src-win32-current-src\axis-c-src-1-0-
> win32\include\axis\common\TypeMapping.h(94)
> : see reference to class template instantiation
> 'std::map<_Kty,_Ty,_Pr,_Alloc>' being compiled
>          with
>          [
>              _Kty=const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>>,
>              _Ty=XSDTYPE,
>              _Pr=std::less<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>>>,
>              _Alloc=std::allocator<std::pair<const
> std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,XSDTYPE>>
>          ]
>
>


Mime
View raw message