Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 36258 invoked from network); 4 Sep 2005 16:50:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2005 16:50:00 -0000 Received: (qmail 27384 invoked by uid 500); 4 Sep 2005 16:50:00 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 27375 invoked by uid 500); 4 Sep 2005 16:50:00 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 27362 invoked by uid 99); 4 Sep 2005 16:49:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2005 09:49:59 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,HTML_50_60,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lancediduck@nyc.rr.com designates 24.29.109.5 as permitted sender) Received: from [24.29.109.5] (HELO ms-smtp-01.rdc-nyc.rr.com) (24.29.109.5) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2005 09:50:12 -0700 Received: from LanceLaptop (cpe-66-108-12-24.nyc.res.rr.com [66.108.12.24]) by ms-smtp-01.rdc-nyc.rr.com (8.12.10/8.12.7) with ESMTP id j84Gnk1i002418 for ; Sun, 4 Sep 2005 12:49:50 -0400 (EDT) Message-Id: <200509041649.j84Gnk1i002418@ms-smtp-01.rdc-nyc.rr.com> From: "Lance Diduck" To: Subject: "Pluggable Memory" Date: Sun, 4 Sep 2005 12:49:59 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002B_01C5B14F.28F0F560" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-index: AcWxcK9/v3UIZfGST1ujnvmVZ9xMPw== X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_002B_01C5B14F.28F0F560 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To all: Here is an issue that may impact stdcxx. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1850.pdf This was just put up there, and written by a guy I work with Palbo Halpern, and is a proposal to overhaul the STL containers to take polymorphic allocators as the default, and furthermore to pass these allocators around from container to container. I don't know how the library committee reviews these proposals. However, a way we could promote Apache stdcxx is to offer a realistic solution, that operates with the Apache "Pluggable Memory" concept. (http://xml.apache.org/xerces-c/program-others.html and http://xml.apache.org/xalan-c/programming.html ) There is an STL solution that shouldn't require changes to the standard, and works for all vendors (at least the ones that take optional allocator arguments). Using the STL with polymorphic allocators makes some of the interface ambiguous however. A more usable solution, could be an adapter that would not assume that allocators compare equal, and enforces post-conditions (based on a policy) that th standard does not address. I have a paper here http://www.lancediduck.com/papers/Cpp/StatefulSTL.pdf that could be the start of a doc on how to use Pluggable Memory with STL containers. Lance ------=_NextPart_000_002B_01C5B14F.28F0F560--