#include <iostream>
usingnamespace std;
template< class T >
struct data_t {
T data;
void change( T _data );
};
template< class T >
void data_t::change( T _data ){
data = _data;
}
int main()
{
data_t<float> test;
return 0;
}
This one doesn't compile with error
"used without template parameters"
Then I realize,
I never really know how to define a foward declared templated class method / function
I can't seems to get answer from google, maybe because I am not searching hard enough,