public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: Max Lawson <mlawson@drfmc.ceng.cea.fr>
To: egcs-bugs@cygnus.com, ian@shellus.com, jhpb@sarto.gaithersburg.md.us
Subject: Re: help
Date: Thu, 19 Feb 1998 14:17:00 -0000 [thread overview]
Message-ID: <9802192217.AA23308@drfmc.ceng.cea.fr> (raw)
Thanx all for your answers
> This needs to be something like:
>
> hash_map< const char*, int,hash<const char*>,equal_to<string> > hm;
>
> The problem you're encountering is that while I the hash function is presumably
> finding the right string in the hash map, the equality comparison you're using
> -- equals_to<const char*> -- is only comparing the ADDRESS of the
> string-pointers, not the strings they point to.
> --
> Ian Haggard || ian@shellus.com (work) || IanHaggard@juno.com (home)
> GNU/Linux -- "Oh, no, Mr Bill!" || #define employer_opinion !my_opinion
>
You get it :-). But, instead of using the equal_to<string> construct I'm
going to provide a new one in order to avoid temporaries (a wrapper to
strcmp()).
Regards, Max
next reply other threads:[~1998-02-19 14:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-19 14:17 Max Lawson [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-08 15:53 help Jicheng Tang
2004-08-30 11:18 Help help
1998-02-18 17:26 help Max Lawson
1998-02-19 7:34 ` help Ian Haggard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9802192217.AA23308@drfmc.ceng.cea.fr \
--to=mlawson@drfmc.ceng.cea.fr \
--cc=egcs-bugs@cygnus.com \
--cc=ian@shellus.com \
--cc=jhpb@sarto.gaithersburg.md.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).