Xref: utzoo gnu.g++:361 comp.lang.c++:4524 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!hellgate.utah.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ct13+ From: ct13+@andrew.cmu.edu (Chris Thewalt) Newsgroups: gnu.g++,comp.lang.c++ Subject: initialization question Message-ID: Date: 31 Aug 89 15:22:05 GMT Organization: Civil Engineering, Carnegie Mellon, Pittsburgh, PA Lines: 12 if I have a class X, and a constructor X(X&) defined, and abc is an instance of X,then X a = abc works as described in the book. However, if I have abc and def as instances of X, and operator + defined as: X& operator+(X&, X&), then the following: X a = abc + def does not call the constructor when creating a (I get bitwise copy of result). Is this behavior correct? [note: using GNU g++ version 1.35] thewalt@ce.cmu.edu