I am writing a few mathematical functions for C++ and have just learned to use template functions so I don't have to make loads of overloaded copies of a simple function for all the different types. I have made a test program that has all the different types I'm likely to use and runs each one through the function to check they all work ok.
What I want to do now is assign an alias to one of my template functions to call it with a different name, so I can write new functions and run them through the test by changing the alias to be the new function rather than going through the whole code with find and replace to change to the new function I want to test.
I have tried this
template <typename T> using B = A<T>;
and this
template<typename T>
constexpr auto alias_to_old = old_function<T>;
but they both throw errors.
Please note I am pretty much a beginner at C++ so don't use jargon in your answers, and clear examples would be appreciated.
Thanks!