S
subramanian100in
I have the following understanding: Please let me know if it is
correct:
copy ctor of a class is NOT declared with 'explicit' qualifier because
if it is declared 'explicit', then the class cannot be used with
standard library container. Is this reasoning correct ? Or is there
some other reason for NOT declaring the copy ctor with 'explicit'
qualifier ?
Kindly clarify.
Thanks
V.Subramanian
correct:
copy ctor of a class is NOT declared with 'explicit' qualifier because
if it is declared 'explicit', then the class cannot be used with
standard library container. Is this reasoning correct ? Or is there
some other reason for NOT declaring the copy ctor with 'explicit'
qualifier ?
Kindly clarify.
Thanks
V.Subramanian