I have my base class:
class UnitTestThread : public testing::Test
{
public:
/// purgeQueue()
template <typename T> void purgeQueue(const ___handle queue, T &data) const;
};
And my inheritance class:
class HmiTest : public UnitTestThread
{
public:
// Sets up the test fixture.
virtual void SetUp();
// ...
}
void HmiTest::SetUp()
{
// By default , purge all the queues
CONTROL_ACTION_PARAM controlAction;
purgeQueue(ApplicationContext.queueControlActionsToThermostat, controlAction);
}
And I have a link error:
HmiTest.obj : error LNK2019: unresolved external symbol "public: void __thiscall UnitTestThread::purgeQueue<struct CONTROL_ACTION_PARAM>(void * const,struct CONTROL_ACTION_PARAM &)const " (??$purgeQueue@UCONTROL_ACTION_PARAM@@@UnitTestThread@@QBEXQAXAAUCONTROL_ACTION_PARAM@@@Z) referenced in function "public: virtual void __thiscall HmiTest::SetUp(void)" (?SetUp@HmiTest@@UAEXXZ)
I don't understand why ... :-S
Thank you so much for your help guys !