Hassan Syed
Hassan Syed

Reputation: 20485

Syntax of out-of-class definition of a template member function of a template class

template<typename A, typename B>
class mindF_ck
{
    template<typename C>
    inline bool ouch(C & c_in);    
};

How do I define the signature for ouch out-of-class ? I send a query to my brain but it keeps coming up blank ;)

Upvotes: 11

Views: 2314

Answers (2)

Gunther Piez
Gunther Piez

Reputation: 30419

template<typename A, typename B>
template<typename C>
bool mindf_uck<A,B>::ouch(C & c_in) {
}

Upvotes: 11

Lstor
Lstor

Reputation: 2263

template <typename A, typename B>
  template <typename C>
bool mindf_ck<A, B>::ouch(C& c_in) {
    // ... code ...
}

Upvotes: 7

Related Questions