Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different implementation of a templated class method for a particular class template type

Tags:

c++

templates

I have a templated class with a method for which I need a different implementation for a specific template type. How do i get it done?

like image 300
rayimag Avatar asked Nov 15 '09 10:11

rayimag


1 Answers

You'll have to create a partial (or full) specialization for this particular type.

like image 194
Timo Geusch Avatar answered Sep 18 '22 07:09

Timo Geusch