I am having trouble with templates and combining them with inheritance, I keep getting an error undefined reference to AssetLoader<Shader*, ShaderLoaderParameter*>::AssetLoader()'. I think there's something I don't quite grasp on templates.
assetloader.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef ASSETLOADER_H
#define ASSETLOADER_H
#include <iostream>
#include <string>
template<class T, class P>
class AssetLoader
{
public:
AssetLoader();
T virtual load(P loaderparameter) = 0;
};
#endif