How to assign alias to template function in C++? -


i writing few mathematical functions c++ , have learned use template functions don't have make loads of overloaded copies of simple function different types. have made test program has different types i'm use , runs each 1 through function check work ok.

what want assign alias 1 of template functions call different name, can write new functions , run them through test changing alias new function rather going through whole code find , replace change new function want 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 both throw errors.

please note pretty beginner @ c++ don't use jargon in answers, , clear examples appreciated.

thanks!


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -