Here is my H file.
#include <vector>
#include "basequeue.h"
namespace advanced {
template<class T>
class AdvancedQueue {
public:
virtual ~AdvancedQueue();
void GetInfo(vector<T>* events);
void Push(const T& event);
bool Pop(T* event);
bool Wait(T* event);
private:
BaseQueue<T> queue_;
};
}
And I have implementations of these in my corresponding cpp file. When I use it, I have linking problems like so....
function advanced::Service::Handler(BaseHandler*): error: undefined reference to 'advanced::AdvancedQueue<advanced::Dashboard>::Pop(advanced::Dashboard*)'
Is there a way to specify that I will be using the "Dashboard" class? Do I have to do that separately?