This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Inline functions
- From: Dima Sorkin <dima dot sorkin at gmail dot com>
- To: Joe Lovelace <pintose at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 9 Feb 2006 10:26:07 +0200
- Subject: Re: Inline functions
- References: <BAY22-F6DB88654561D447AF9962B50E0@phx.gbl>
On 2/6/06, Joe Lovelace wrote:
> What is the proper way to "inline" a function in C++
Example:
In header file:
inline int f(int a){ return a+1;
}
Dima.