I am trying to overload template functions in a class but with no success.
How can i overLoad template in my code.
class CommandInterfaceFont
{
private:
std::map < std::string, FontParam > lookUpMap;
public:
CommandInterfaceFont();
friend class SumCommandInterface;
template <typename plug , typename typeValue >
void SetValue(plug* geom, std::string stdstrParamName, typeValue value);
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template <typename plug >
void CommandInterfaceFont::SetValue(plug* geom, std::string stdstrParamName, std::string value)
{
geom->setText(value);
}
template <typename plug >
void CommandInterfaceFont::SetValue(plug* geom, std::string stdstrParamName, bool value)
{
geom->setUseShadow(value);
}
Aucun commentaire:
Enregistrer un commentaire