This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16612] empty basic_strings can't live in shared memory
- From: "steve dot horn at gs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2004 12:39:44 -0000
- Subject: [Bug libstdc++/16612] empty basic_strings can't live in shared memory
- References: <20040718033747.16612.steve.horn@gs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steve dot horn at gs dot com 2004-07-18 12:39 -------
(In reply to comment #1)
> HUH? Why would do such a thing in the first place, C++ is not designed to go
across shared memory at
> all.
It's fairly common to use allocators to put STL collections in shared memory.
Here are some references that mention exactly that:
http://gcc.gnu.org/ml/libstdc++/2003-01/msg00099.html
http://www.spcspringboard.com/Catalog/effectivestl.htm
http://www.codeproject.com/cpp/allocator.asp
For the most part, I've found that libstdc++ handles doing this very well.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16612