[omniORB] STL and VC++
Mike Bendickson
bendi003@tc.umn.edu
Tue, 17 Aug 1999 12:29:42 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_00C5_01BEE8AC.2EB44E60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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
------=_NextPart_000_00C5_01BEE8AC.2EB44E60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Has anyone successfully gotten the Standard Template =
Library=20
(SGI port) to mix with omniORB? They seem to be colliding on the=20
definition of hash.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>d:\omniorb_2.7.1\include\omniorb2\omniorb.h(190) : =
error=20
C2955: 'hash' : use of class template requires template argument=20
list<BR> =
d:\stl\stl_hash_fun.h(40) :=20
see declaration of 'hash'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>The omniorb.h line:</FONT></DIV>
<DIV><FONT size=3D2>_CORBA_MODULE_FN int hash(objectKey&=20
k); &nbs=
p;  =
; =20
//</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>The stl_hash_fun.h line:<BR>template <class =
_Key> struct=20
hash { };</DIV></FONT>
<DIV> </DIV>
<DIV><FONT size=3D2>This would seem to be a problem. Any way =
around it=20
without completely separating my CORBA server code with my STL=20
code?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Thanks,</FONT></DIV>
<DIV><FONT size=3D2>-Mike</FONT></DIV></BODY></HTML>
------=_NextPart_000_00C5_01BEE8AC.2EB44E60--