Issue 178: Bounded sequence problem (Section 16.11 p. 16-23) (cxx_revision) Source: (, ) Nature: Uncategorized Severity: Summary: Summary: "Default constructor for a bounded sequence always allocates a contents vector.."-> Bad effect for sequences such as CORBA::ReferenceDatawhich allocates 1024 octets of storage Resolution: resolved, close issue Revised Text: Actions taken: October 7, 1996: received issue February 19, 1999: closed issue Discussion: End of Annotations:===== >From jon@sems.com Mon Oct 7 14:35:49 1996 Received: from ns.sems.com by amethyst.omg.org.omg.org (5.4R2.01/1.34) id AA28016; Mon, 7 Oct 1996 14:35:49 -0400 Received: from vaccine-bb.netlabs.com (vaccine-bb.sems.com) by proxy.netlabs.com (4.1/SMI-4.1) id AA01738; Mon, 7 Oct 96 10:28:30 PDT Received: from clamp.netlabs.com by vaccine-bb.netlabs.com (4.1/SMI-4.1) id AA24313; Mon, 7 Oct 96 11:34:16 PDT Received: from clamp by clamp.netlabs.com (SMI-8.6/SMI-SVR4) id LAA04216; Mon, 7 Oct 1996 11:34:15 -0700 Sender: jon@sems.com Message-Id: <32594D26.37F7@sems.com> Date: Mon, 07 Oct 1996 11:34:14 -0700 From: Jonathan Biggar Organization: Seagate Enterprise Management Software X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4m) Mime-Version: 1.0 To: cxx_revision@omg.org, issues@omg.org Subject: Bounded Sequence problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Section 16.11 on page 16-23 states: "The default constructor for a bounded sequence always allocates a contents vector...". This has a bad effect for sequences such as CORBA::ReferenceData, which would allocate 1024 octets of storage when just declaring a variable of this type, reguardless of whether it is used. Can't the requirements for bounded sequences be relaxed so that the full buffer need not be allocated (or no buffer allocated at all if the current length is 0)? Jon Biggar >From juergen@omg.org Fri Oct 11 14:15:36 1996 Received: from rune.omg.org by amethyst.omg.org.omg.org (5.4R2.01/1.34) id AA23726; Fri, 11 Oct 1996 14:15:36 -0400 Message-Id: <2.2.32.19961011180007.006edd6c@amethyst.omg.org> X-Sender: juergen@amethyst.omg.org X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 11 Oct 1996 14:00:07 -0400 To: issues, cxx_revision From: Juergen Boldt Subject: This is issue # 178 Bounded sequence problem (Section 16.11 p. 16-23 "Default constructor for a bounded sequence always allocates a contents vector.."-> Bad effect for sequences such as CORBA::ReferenceDatawhich allocates 1024 octets of storag -Juergen