© { JSL }
91
Text Box: Copy Constructor?
Copy Constructor?
Folded Corner:
·you can declare a "copy constructor"
wit is not called for value parameters/returns
wa copy is always a plain bitwise copy
struct Pair
{
... Pair(Pair other)
    {
       ...
    }
    ...
}
struct Pair
{
... Pair Func() ...
... void Func(Pair copy)
    {
       Pair p = new Pair(copy);
    }
}
calling this does
not result in
infinite recursion
these do not call
the copy c'tor
only this does