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