I implemented the copy constructor as it is described here. But still the problem is that when I update route_copy, then the same update is applied to route>
route_copy
route>
Ofcourse it'll create dependent copy also called Shallow copy.
You need a Deep copy.