M
Manuel Maria Diaz Gomez
Hi Everybody
I would like to implement an interface class (abstract), where the pure
virtual method can take any parameter, and leave the actual implementation
to the end user.
I believe this is not correct:
template<typename T>
class IBase {
public:
virtual void do_something(T) = 0;
};
Any hints?
Cheers
Manuel
--
========================================================================
Manuel Diaz-Gomez | ATLAS Bldg. 32/SB-008 tel. +41 22 76 76304
CERN EP Division
CH-1211 Geneva 23
SWITZERLAND
========================================================================
I would like to implement an interface class (abstract), where the pure
virtual method can take any parameter, and leave the actual implementation
to the end user.
I believe this is not correct:
template<typename T>
class IBase {
public:
virtual void do_something(T) = 0;
};
Any hints?
Cheers
Manuel
--
========================================================================
Manuel Diaz-Gomez | ATLAS Bldg. 32/SB-008 tel. +41 22 76 76304
CERN EP Division
CH-1211 Geneva 23
SWITZERLAND
========================================================================