template problem with 971016
dave madden
dhm@paradigm.webvision.com
Tue Oct 21 15:50:00 GMT 1997
=>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.
More information about the Gcc
mailing list