With some support code it does compile in VC10 as the correct headers are included at the necessary places. Are you sure that the file containing the specialization actually includes the definition of the template so that the compiler sees a template to specialize in the first place?
I don't have GCC available to try at the moment so cannot verify if that is actually the error message you get under that circumstance.
Show differencesHistory of post edits
#1Brother Bob
Posted 30 August 2012 - 04:49 PM
With some support code it does compile in VC10 as the correct headers are included at the necessary places. Are you sure that the file containing the specialization actually includes the definition of the template so that the compiler sees a template to specialize in the first place?