Partial member of class template specialization

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Petre Iantu

    Partial member of class template specialization

    How can I partlialy specialize function func below for <class Class, int>
    for example?



    Thanks,

    Petre



    template<class Class, class Dummy>

    class Template

    {

    public:

    Class func(Dummy param);

    };

    template <class Class, class Dummy> Class Template<Class, Dummy>::func(Du mmy
    f)

    {

    }

    template <class Class, int> Class Template<Class, int>::func(int f)

    {

    }

    int main()

    {

    Template<int, int> a;

    }


  • Petre Iantu

    #2
    Re: Partial member of class template specialization

    > How can I partlialy specialize function func below for <class Class, int>[color=blue]
    > for example?[/color]

    Sorry, I've found the answer... I should've specialized the class before.

    Petre


    Comment

    Working...