On inlining in C++
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Aug 4 17:22:00 GMT 2003
dewar@gnat.com (Robert Dewar) writes:
| In C++ the practice of writing simple functions in the header is not just
in C++, there is distinction between putting something in header and
requesting inlining. Certainly requesting inlining implies making the
function available in every translation unit that uses it, but
putting something in a header file does not mean inlining is requested.
| a matter of the programmer "requesting inline explicitly", but also it
| is just the more convenient way of doing things, and doing otherwise may
| be undesirable for structural and documentation purposes.
More convenient way of doing what?
C++ is not Ada and Ada is not C++.
If you want to argue about C++ inline, please do consider C++
semantics, practice.
-- Gaby
More information about the Gcc
mailing list