[omniORB] STL and VC++

Mike Bendickson bendi003@tc.umn.edu
Wed, 18 Aug 1999 13:42:56 -0500


My fault.  It's working fine now.  I was using namespaces and that was
causing problems with the hash function.  The STL headers defined a hash
template.

Thanks for the responses.

-Mike

-----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 6:54 PM
Subject: RE: [omniORB] STL and VC++


>Our project *is* using namespaces internally.  I am not sure if
>OmniORB does or not.  I seem to recall that it was updated to
>honor namespaces at some point.
>
>-Brent
>
>> -----Original Message-----
>> From: Mike Bendickson [mailto:bendi003@tc.umn.edu]
>> Sent: Tuesday, August 17, 1999 11:39 AM
>> To: Brent Fulgham; omniorb-list@uk.research.att.com
>> Subject: Re: [omniORB] STL and VC++
>>
>>
>> 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
>>
>>
>>
>>
>