Re: Templates and Non-Inline Functions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Tom. I'm trying to better understand how a template function can be
prevented from being inline. I'll check out the link.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"Tom Serface" <tserface@xxxxxxx> wrote in message
news:e2CY2GTQGHA.4900@xxxxxxxxxxxxxxxxxxxxxxx
This link has some interesting FAQ on templates. I'm not sure exactly
what you're looking for, but ...

http://www.parashift.com/c++-faq-lite/templates.html

Tom

"Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message
news:O9RBJsMQGHA.564@xxxxxxxxxxxxxxxxxxxxxxx
Does someone have some tips or a good link to describe some of the issues
associated with using template classes but not having every function
inline?

Thanks.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm






.



Relevant Pages

  • Re: Templates and Non-Inline Functions
    ... That part only seems to discuss why the compiler needs to be able to "see" ... Jonathan Wood ... Available for consulting: http://www.softcircuits.com/jwood/resume.htm ... prevented from being inline. ...
    (microsoft.public.vc.mfc)
  • Re: Inline Functions with Inline Assembler
    ... "Jonathan Wood" wrote in message ... > Can anyone help me figure out the best way to write an inline function ... > mov nRemainder,edx ... I think that if you are trying to write one piece of inline assembler code ...
    (microsoft.public.vc.mfc)
  • Re: template function --compiler cannot resolve
    ... "Victor Bazarov" wrote: ... > Jazz wrote: ... >> I have a very simple template function declared in the MyInclude.h, ... > declare it 'inline'. ...
    (microsoft.public.vc.language)
  • Re: Alternatives to #define?
    ... > I'd guess that I can either use a template function, ... > an inlined static method. ... > inline void doStuff() ... > static inline void doStuff() const ...
    (comp.lang.cpp)
  • Re: Typed Functions?
    ... I know how to make a template class. ... I realize that the above function would be inline. ... >> Jonathan Wood ... >> SoftCircuits ...
    (microsoft.public.vc.mfc)