I have a 1st order RC low-pass filter. It's implemented as a class called [/code]Filt[/code], and is defined as:
1 2
template <class T>
class Filt {/*...*/};
That name was chosen because the colloquial phrase "I need to filter this" tends to refer to an RC low-pass filter.
Now if someone is looking for a low-pass filter in my library, they will only find Filt which they may not recognize as a low-pass filter, so I want to typedef this to simply give it another alias.
error C2955: 'sim::Filt' : use of class template requires template argument list
error C2976: 'sim::Filt' : too few template arguments
error C2143: syntax error : missing ';' before '<'
error C2823: a typedef template is illegal
OK
Is there a way to do this? I suppose inheritance would work instead but that requires extra code for the constructor and operator functions.