This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C++11 feature: template alias

Hi!

I was trying to code something like this for my F28335 project:

template<typename SD>
using FuncPtr = void (*)(void*, SD*);

This is a C++11 feature. According to the GCC webpages, this feature is part of GCC since 4.7. I have seen that there is GCC 4.8 support for MSP430 (http://processors.wiki.ti.com/index.php/CCSv6_Changes#GCC), but what about C2000?

The above example does not compile out of the box. I know that there is a workaround (http://stackoverflow.com/questions/26417807/error-c2823-a-typedef-template-is-illegal-function-pointer), but the C++11 version would be more straight forward.

Thanks