Re: [ROOT] Copy constructor of TGraph

From: Michele Zaffalon (M.Zaffalon@phys.rug.nl)
Date: Sun Feb 15 2004 - 11:08:42 MET


Hi Rene

is the TObject::Clone() method copying a derived class 
object?
Anyway, I thought I could use the copy constructor...
I use root 3.10/02 compiled on debian with g++3.3.
Here is the code.

michele


On Sat, 14 Feb 2004 21:46:13 +0100 (MET)
  Rene Brun <brun@pcbrun.cern.ch> wrote:
>Hi Michele,
>
>If you modify the graph, add a clone of this graph
>to the multigraph. Instead of
>multigraph->Add(graph);
>do
>multigraph->Add(graph->Clone());
>
>To understand the problem with your copy constructor, I 
>need your 
>code,
>but also the version of Root
>
>Rene Brun






This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET