Templated Function Typedef
I have the following function:
Code:
template <int compareDirection>
string getAbsoluteWord(Sequence &wordsList) ...
I want to make two typedefs that define getSmallestWord as getAbsoluteWord<-1> and getLargestWord as getAbsoluteWord<1>. The following gives me compile errors.
Code:
typedef getAbsoluteWord <-1> getSmallestWord;
typedef getAbsoluteWord <1> getLargestWord;
I've tried a myriad of different syntaxes, including those for function pointers. I've also tried google with no luck.
Is there any way to do this?