I am creating an application that includes and calls upon someone else's code. I need to slightly change the functionality of a constructor in their code but the class I need to change is buried away very deep. I considered inheriting from the class so I could change the constructor but in order to redirect to the derived class I would need to inherit from another 10 classes or so and change their constructors as the offending class is not called directly from my program.
I have simply redefined the offending constructor in my cpp file, this is working fine but is it safe?
What should I do to make it safe? Bearing in mind that I cannot edit the offending code directly as it has already been distributed.
Edited 5 Years Ago by Colezy: n/a