This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template problem with 971016
- To: jbuck at synopsys dot com
- Subject: Re: template problem with 971016
- From: dave madden <dhm at paradigm dot webvision dot com>
- Date: Tue, 21 Oct 1997 15:27:26 -0700
- CC: egcs at cygnus dot com
=>From: Joe Buck <jbuck@synopsys.com>
=>
=>> I've encountered a problem with templates: if you try to insert() a a
=>> key-value pair<> into a multimap<>, the signature selection code won't
=>> treat a pair<k,v> as an acceptable match for the pair<const k,v> that
=>> it wants.
=>
=>No, you've encountered a problem because you're using the wrong definition
=>of pair<>, one that you've gotten from SGI instead of using the EGCS
=>version ...
=>Your code works fine when you link against the provided headers.
OK, thanks!
=>> BTW, should I do anything special to get egcs to work with
=>> libg++-2.7.2? I get warnings from egcs about the new() and delete()
=>> declared in g++-include/new.h.
=>
=>Why would you want to do this?
=>...
=>If you need stuff in the old libg++, you're
=>better off starting with libg++-2.8.0b6...
Actually, I'm not (currently) using anything in libg++, but the old
header files are seen by egcs++ due to search paths, and the old
declarations of new & delete conflict. I'll try libg++-2.8.0; is
there any reason this isn't linked into the egcs area (either via
symlink or note in a README), since it's easily foreseeable that an
egcs user might be interested in it?
regards,
d.