Re: What is the gain of "inline"
- From: gwowen <gwowen@xxxxxxxxx>
- Date: Thu, 10 Dec 2009 03:59:20 -0800 (PST)
On Dec 10, 8:39 am, gwowen <gwo...@xxxxxxxxx> wrote:
I can only think of one place where C++ mandates inline (in
the absence of an explicit "inline" and thats when the definition of a
member function is included in the class definition. What are the
others?
Reference to r7.1.2 [dcl.fct.spec] in the C++ standard confirms this.
A function in C++ is never mandated to be inline. The keyword is only
ever a hint, but member functions defined with a class definition are
implicitly specified as if declared "inline".
.
- Follow-Ups:
- Re: What is the gain of "inline"
- From: Dik T. Winter
- Re: What is the gain of "inline"
- References:
- What is the gain of "inline"
- From: janus
- Re: What is the gain of "inline"
- From: Tom St Denis
- Re: What is the gain of "inline"
- From: Eric Sosman
- Re: What is the gain of "inline"
- From: Kaz Kylheku
- Re: What is the gain of "inline"
- From: Phil Carmody
- Re: What is the gain of "inline"
- From: Antoninus Twink
- Re: What is the gain of "inline"
- From: jacob navia
- Re: What is the gain of "inline"
- From: gwowen
- What is the gain of "inline"
- Prev by Date: Re: What is the gain of "inline"
- Next by Date: Re: Help needed
- Previous by thread: Re: What is the gain of "inline"
- Next by thread: Re: What is the gain of "inline"
- Index(es):
Relevant Pages
|