S
shyam
Hi All
I have a generic template class called StubController
I also wrote a main ( ) function to instantiate the class and test it
I instantiated it like
StubController<int> stubber;
The problem is that when I try to instantiate the class within another
class's function or in the global scope of another class source file
then I get an error like
undefined reference to `StubController<int>::StubController[in-charge]
()'
In this case I have to instantiate as
StubController<int> stubber( );
What is the difference between StubController<int> stubber; &
StubController<int> stubber( )? Am I doing any obvious mistake ?
Plz help
Thanks in advance
Shyam
I have a generic template class called StubController
I also wrote a main ( ) function to instantiate the class and test it
I instantiated it like
StubController<int> stubber;
The problem is that when I try to instantiate the class within another
class's function or in the global scope of another class source file
then I get an error like
undefined reference to `StubController<int>::StubController[in-charge]
()'
In this case I have to instantiate as
StubController<int> stubber( );
What is the difference between StubController<int> stubber; &
StubController<int> stubber( )? Am I doing any obvious mistake ?
Plz help
Thanks in advance
Shyam