hmm stuck with this problem:
i'd like to have a template function in an interface, for e.g.:
class interface {
virtual void somefun(int)=0;
template<typename T>
/*virtual not...
Type: Posts; User: clf
hmm stuck with this problem:
i'd like to have a template function in an interface, for e.g.:
class interface {
virtual void somefun(int)=0;
template<typename T>
/*virtual not...
Thanx A LOT
i didn't think about the templated solution which is exactly what I needed.
cla
Hi,
my problem is the following
let's say we have a class MyClass:
class MyClass {
int val;
bool check(int) const;
};
bool MyClass::check(int i) const {
return i==val;