[omniORB] STL and VC++

Brent Fulgham bfulgham@xpsystems.com
Tue, 17 Aug 1999 10:47:06 -0700


I run omniorb on GNU/Linux 2.2 and have no problem with hash =
conflicts.=A0 The
GNU STL is based on the SGI port of
the STL.
=A0
Perhaps you just have a bad search path for your include files?

-----Original Message-----
From: Mike Bendickson [mailto:bendi003@tc.umn.edu]
Sent: Tuesday, August 17, 1999 10:30 AM
To: omniorb-list@uk.research.att.com
Subject: [omniORB] STL and VC++


Has anyone successfully gotten the Standard Template Library (SGI port) =
to
mix with omniORB?=A0 They seem to be colliding on the definition of =
hash.
=A0
d:\omniorb_2.7.1\include\omniorb2\omniorb.h(190) : error C2955: 'hash' =
: use
of class template requires template argument list
=A0=A0=A0=A0=A0=A0=A0 d:\stl\stl_hash_fun.h(40) : see declaration of =
'hash'
=A0
The omniorb.h line:
_CORBA_MODULE_FN int hash(objectKey& =
k);=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 //
=A0
The stl_hash_fun.h line:
template <class _Key> struct hash { };
=A0
This would seem to be a problem.=A0 Any way around it without =
completely
separating my CORBA server code with my STL code?
=A0
Thanks,
-Mike