can a templated function be made virtual ?

as topic is it possible to do something like this ?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

class A{


public:
   template<typename T> 
   virtual Token::pointer_type  perform(Token::pointer_type num1);



};





No, it is not allowed.
What's your actual goal? This looks like an XY problem:
http://xyproblem.info/

(Same thing for your other question http://www.cplusplus.com/forum/beginner/226956/ )
Topic archived. No new replies allowed.