Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Calling a stati...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 43058 of 48044
Post > Topic >>

Calling a static class-member template function

by Olumide <50295@[EMAIL PROTECTED] > Feb 2, 2008 at 10:35 AM

Hi -

I've got a static class member function

MyClass{
public:
     template <typename T> static void converter( list<T > &, vector<T
> & );
};

template <typename T> void VTK_Writer::converter( list<T > &lst,
vector<T > &vec )
{
      // does weird and wonderful stuff
}

It compiles well. However, when I try to call/use this function as
such,

main( )
{
      list<int > A;
      vector<int > B;
      MyClass::converter( A, B ); // E R R O R
}

The Microsoft C++ compiler "rewards" me with the linker error LNK2019.
What am I doing wrong?

Thanks,

- Olumide

PS: is it a static class member function template OR a static class
member template function? ;-)
 




 10 Posts in Topic:
Calling a static class-member template function
Olumide <50295@[EMAIL   2008-02-02 10:35:52 
Re: Calling a static class-member template function
"Alf P. Steinbach&qu  2008-02-02 20:03:10 
Re: Calling a static class-member template function
Olumide <50295@[EMAIL   2008-02-02 11:17:24 
Re: Calling a static class-member template function
Olumide <50295@[EMAIL   2008-02-02 13:26:09 
Re: Calling a static class-member template function
James Kanze <james.kan  2008-02-03 02:16:37 
Re: Calling a static class-member template function
Jerry Coffin <jcoffin@  2008-02-03 03:27:52 
Re: Calling a static class-member template function
James Kanze <james.kan  2008-02-03 02:22:42 
Re: Calling a static class-member template function
murali.desikan@[EMAIL PRO  2008-02-03 05:25:46 
Re: Calling a static class-member template function
Olumide <50295@[EMAIL   2008-02-03 11:09:48 
Re: Calling a static class-member template function
murali.desikan@[EMAIL PRO  2008-02-04 16:32:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:39:26 CDT 2008.