2

Just curious to know whether there is any difference(apart from the syntax) between a implicit and explicit "copy" constructor call?

Eg.

MyClass my2 = m1; //Implicit Call MyClass my3(my2); //Explicit Call

Zaid Khan
  • 786
  • 2
  • 11
  • 24

1 Answers1

2

No difference.

Both call the same underlying method.

CinCout
  • 9,486
  • 12
  • 49
  • 67