Re: Tips for using template C++ classes and Cocoa
Re: Tips for using template C++ classes and Cocoa
- Subject: Re: Tips for using template C++ classes and Cocoa
- From: "Clark S. Cox III" <email@hidden>
- Date: Tue, 02 Jul 2002 11:29:00 -0400
Just clearing up some misinformation:
On 07/02/2002 09:53, "Nick" <email@hidden> wrote:
>
First of all object member functions are not supposed to be inline (at
>
least I cannot imagine how they could be, or how the compiler doesn't
>
cry about it).
He's writing C++, there is nothing wrong with inline member functions,
especially in templated classes, where most compilers inline every member
function anyway.
>
Second, the code that you included has a problem. The function
>
declaration and implementation are not the same function!
Yes they are (assuming that the declaration is inside the class
definition, and that the class definition starts with "template <class T>"
or "template<typename T>".
--
Clark S. Cox III
MacOSX Programmer, available for hire
http://clarkcox.dyndns.org/
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.