Comment

Comment by shivajikobardan

Correct me if I'm wrong: In int main, "complex c3(c2)" creates a copy of c2 and thus passes c2 to copy constructor.

In copy constructor, "complex(complex c)" copy constructor takes c=c2.

So what's the issue with this?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton