I have a c++ library which has an function called ExampleFunction()
. This function is documented and is already in use. Unfortunately, the style of the library requires this function to be called exampleFunction()
{initial letter is lowercase}.
I need to keep the old name for backwards compatibility but add the new name as a public function. What is the most efficient way to do this?
I am assuming that adding a definition of:
void exampleFunction() {ExampleFunction();}
is not the best way of solving this and am looking for options.