Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsl!dog From: dog@cbnewsl.ATT.COM (edward.n.schiebel) Newsgroups: comp.lang.c++ Subject: Re: copy objects to another location Message-ID: <1822@cbnewsl.ATT.COM> Date: 11 Sep 89 11:19:46 GMT References: <14265@polyslo.CalPoly.EDU> Distribution: usa Organization: AT&T Bell Laboratories Lines: 14 From article <14265@polyslo.CalPoly.EDU>, by ttwang@polyslo.CalPoly.EDU (Thomas Wang): > ... > There does not appear to be a portable way to copy an object from one > memory location to another. The operator '=' might be overloaded, so > I cannot depend on it for copying. Would the form of new: new (some_address) X(an_x); which places the new X, in this case initialized using the X(const X&) constructor, at the memory location some_address work? Ed Schiebel AT&T Bell Laboratories dog@vilya.att.com