This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Subtle MT problem with __gnu_cxx::hash_map
- From: Paul Dubuc <pdubuc at cas dot org>
- To: Matt Austern <austern at apple dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Fri, 19 Nov 2004 15:45:24 -0500
- Subject: Re: Subtle MT problem with __gnu_cxx::hash_map
- Organization: Chemical Abstracts Service (CAS)
- References: <419E55D6.6030803@cas.org> <E9FD1A3B-3A69-11D9-B501-000A95AA5E5E@apple.com>
Matt Austern wrote:
But operator[] isn't read access. It's defined to be equivalent to a
certain form of insert().
Not just insert() but find() too. So it's both read and write access. I think
there's enough ambiguity to warrant the simple change I suggested if it's really
feasible.
--
Paul M. Dubuc
Dept. 25 | Rm. 4349B | ext. 2692
http://www.purl.org/dubuc/cas/