Out-of-class-template member template specialization syntax

Discussion in 'C++' started by BigMan, Mar 26, 2005.

  1. BigMan

    BigMan Guest

    How do I specialize a member template of a class template out of the
    definition of the class template.
     
    BigMan, Mar 26, 2005
    #1
    1. Advertising

  2. BigMan

    Guest

    BigMan wrote:
    > How do I specialize a member template of a class template out of the
    > definition of the class template.


    You can't. You need to specialize the whole stuff. Like

    template <> template <>
    void X<int>::f<int>() {}

    I am not sure if even that can be done. Just do a search in the
    archives and you will see a lot of answers.
     
    , Mar 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    4
    Views:
    7,679
    pdixtl
    Jun 4, 2010
  2. Ruben Campos
    Replies:
    3
    Views:
    6,474
  3. Joseph Turian
    Replies:
    4
    Views:
    599
    John Carson
    Mar 20, 2006
  4. toton
    Replies:
    1
    Views:
    617
  5. toton
    Replies:
    2
    Views:
    339
    toton
    Feb 22, 2008
Loading...

Share This Page