[omniORB] STL and VC++

Mike Bendickson bendi003@tc.umn.edu
Tue, 17 Aug 1999 13:39:19 -0500


Are you using namespaces?

-----Original Message-----
From: Brent Fulgham <bfulgham@xpsystems.com>
To: Mike Bendickson <bendi003@tc.umn.edu>; omniorb-list@uk.research.att.com
<omniorb-list@uk.research.att.com>
Date: Tuesday, August 17, 1999 12:48 PM
Subject: RE: [omniORB] STL and VC++


I run omniorb on GNU/Linux 2.2 and have no problem with hash conflicts. The
GNU STL is based on the SGI port of
the STL.

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? They seem to be colliding on the definition of hash.

d:\omniorb_2.7.1\include\omniorb2\omniorb.h(190) : error C2955: 'hash' : use
of class template requires template argument list
d:\stl\stl_hash_fun.h(40) : see declaration of 'hash'

The omniorb.h line:
_CORBA_MODULE_FN int hash(objectKey& k); //

The stl_hash_fun.h line:
template <class _Key> struct hash { };

This would seem to be a problem. Any way around it without completely
separating my CORBA server code with my STL code?

Thanks,
-Mike