From -1741994520950977515
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,64409d9769f709f0
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,64409d9769f709f0
X-Google-Attributes: gidf78e5,public
From: AllanW@my-dejanews.com
Subject: Re: Is this legal C++?
Date: 1998/08/07
Message-ID: <6qfnud$nm0$1@nnrp1.dejanews.com>#1/1
X-Deja-AN: 378955865
X-NNTP-Posting-Host: 199.125.171.8
Approved: stephen.clamage@sun.com (comp.std.c++) Otto Perdeck <otto.perdeck@inter.NL.net> wrote:
References: <01bdc100$f82d21b0$19011a12@bwing> <35C9E377.831A9392@inter.NL.net>
X-Snookums: I love you
X-UID: 0000000001
X-Status: $$$T
X-Http-User-Agent: Mozilla/4.04 [en] (Win95; I)
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Fri Aug 07 20:26:53 1998 GMT
Newsgroups: comp.lang.c++,comp.std.c++
Originator: clamage@taumet

    void* ::operator new(size_t, void*addr) { return addr; }

Since the placement operator new is inline and trivial, you
can construct an object of type T at address t with:
    new(t) T();
and the results call the constructor as "directly" as anyone is
likely to need.

--
AllanW@my-dejanews.com is a "Spam Magnet" -- never read.
Please reply in USENET only, sorry.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




