You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Peter A. Volchek" <Pe...@ti.com.od.ua> on 2000/09/08 10:47:51 UTC
Compile Error (MSVC5)
Compile error in MSVC 5
..\src\ibmxml\xerces\src\util/RefHashTableOf.c(113) : error C2955: 'hash' : use of class template requires template argument list
Re: Compile Error (MSVC5)
Posted by Dean Roddey <dr...@charmedquark.com>.
VC5 was pretty braindead. I wouldn't doubt that it would have trouble digesting any number of code bases.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com
"It takes two buttocks to make friction"
- African Proverb
----- Original Message -----
From: Peter A. Volchek
To: Xerces
Sent: Friday, September 08, 2000 1:47 AM
Subject: Compile Error (MSVC5)
Compile error in MSVC 5
..\src\ibmxml\xerces\src\util/RefHashTableOf.c(113) : error C2955: 'hash' : use of class template requires template argument list
Re: Compile Error (MSVC5)
Posted by Thomas Matelich <tm...@zetec.com>.
"Peter A. Volchek" wrote:
> Hi,thanks for explanation, but what is better,once rename hash or each
> time think about include order or using namespace "std" ?
My personal opinion is that those people who do using namespace std;
anywhere but function scope (and sparingly there) deserve what they
get. But that is not why I wanted to write. I curious what compilers
xerces is concerned about by not using namespaces. I ask because I'm
working on a little open source library myself and really want to use
namespaces, but I also want fairly wide compatibility.
Thanks.
--
Thomas O Matelich
Senior Software Designer
Zetec, Inc.
sosedada@usa.net
tmatelich@zetec.com
Re: Compile Error (MSVC5)
Posted by "Peter A. Volchek" <Pe...@ti.com.od.ua>.
Hi,
thanks for explanation, but what is better,
once rename hash or each time think about include order or using namespace "std" ?
----- Original Message -----
From: Radovan Chytracek
To: xerces-c-dev@xml.apache.org
Sent: Friday, September 08, 2000 7:39 PM
Subject: RE: Compile Error (MSVC5)
Hi,
in our framework we use STL heavily as well. However we don't assume
namespace "std" so we always write something like:
#include <string>
std::string myString;
may seem annoying but at least in MSVC++5.0 we don't have name clashes then.
Our experience is that MSVC++5.0 has some problems with the "std" namespace so
we took the other way.
BTW I have no problem mixing STL & Xerces-C using MSVC++ 5.0 & 6.0.
The best regards
Radovan
--
Radovan Chytracek LHCb experiment at CERN
e-mail: Radovan.Chytracek@cern.ch WWW: http://home.cern.ch/~chytrace
phone: +41 22 76 72486
>RefHashTableOf.c
>~~~~~~~~~~~~~~
>template <class TVal> RefHashTableOf<TVal>::RefHashTableOf(const unsigned int
modulus, const bool adoptElems, HashBase* hash)
> ~~~~
>
>I use STL in my project, and this name (hash) conflics with STL's
>workaround: rename hash
>>Compile error in MSVC 5
>>..\src\ibmxml\xerces\src\util/RefHashTableOf.c(113) : error C2955: 'hash' :
use of class template requires template argument list
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: Compile Error (MSVC5)
Posted by Radovan Chytracek <Ra...@cern.ch>.
Hi,
in our framework we use STL heavily as well. However we don't assume
namespace "std" so we always write something like:
#include <string>
std::string myString;
may seem annoying but at least in MSVC++5.0 we don't have name clashes then.
Our experience is that MSVC++5.0 has some problems with the "std" namespace so
we took the other way.
BTW I have no problem mixing STL & Xerces-C using MSVC++ 5.0 & 6.0.
The best regards
Radovan
--
Radovan Chytracek LHCb experiment at CERN
e-mail: Radovan.Chytracek@cern.ch WWW: http://home.cern.ch/~chytrace
phone: +41 22 76 72486
>RefHashTableOf.c
>~~~~~~~~~~~~~~
>template <class TVal> RefHashTableOf<TVal>::RefHashTableOf(const unsigned int
modulus, const bool adoptElems, HashBase* hash)
> ~~~~
>
>I use STL in my project, and this name (hash) conflics with STL's
>workaround: rename hash
>>Compile error in MSVC 5
>>..\src\ibmxml\xerces\src\util/RefHashTableOf.c(113) : error C2955: 'hash' :
use of class template requires template argument list
Re: Compile Error (MSVC5)
Posted by "Peter A. Volchek" <Pe...@ti.com.od.ua>.
RefHashTableOf.c
~~~~~~~~~~~~~~
template <class TVal> RefHashTableOf<TVal>::RefHashTableOf(const unsigned int modulus, const bool adoptElems, HashBase* hash)
~~~~
I use STL in my project, and this name (hash) conflics with STL's
workaround: rename hash
----- Original Message -----
From: Peter A. Volchek
To: Xerces
Sent: Friday, September 08, 2000 12:47 PM
Subject: Compile Error (MSVC5)
Compile error in MSVC 5
..\src\ibmxml\xerces\src\util/RefHashTableOf.c(113) : error C2955: 'hash' : use of class template requires template argument list