Re: Copy constructor and assignment operator

2018-09-16 Thread MRAB
ilto:pyt...@mrabarnett.plus.com>> wrote: On 2018-09-15 19:47, Ajay Patel wrote: > > I have created below code and i want to restrict an object copy. > What are the methods called for copy constructor and assignment operator? Basically i don't want to allow b

Re: Copy constructor and assignment operator

2018-09-15 Thread MRAB
On 2018-09-15 19:47, Ajay Patel wrote: I have created below code and i want to restrict an object copy. What are the methods called for copy constructor and assignment operator? Basically i don't want to allow below operation. p = Point(1,3) p2 = Point(6,7) => How to disall

Copy constructor and assignment operator

2018-09-15 Thread Ajay Patel
I have created below code and i want to restrict an object copy. What are the methods called for copy constructor and assignment operator? Basically i don't want to allow below operation. p = Point(1,3) p2 = Point(6,7) => How to disallow below operations? p(p2) p = p2 Please p