By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,332 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,332 IT Pros & Developers. It's quick & easy.

inline warning on borland C++

P: n/a
bob
Hi,

when compiling source with borland c++ builder, the compiler issues the
following warning....

"functions taking class by-value arguments are not expanded inline"
can anybody tell me why? I mean, whats the difference between by value
and reference arguments wrt inlining?
not important, im just curious.

thanks

G

Nov 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
bo*@blah.com wrote:
when compiling source with borland c++ builder, the compiler issues
the following warning....

"functions taking class by-value arguments are not expanded inline"
can anybody tell me why? I mean, whats the difference between by value
and reference arguments wrt inlining?
Somebody in one of 'borland.public.cpp*' newsgroups might be able
to help. Try them.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Nov 2 '06 #2

P: n/a
On 2 Nov 2006 07:50:44 -0800 in comp.lang.c++, "bo*@blah.com"
<Gr**********@gmail.comwrote,
>
"functions taking class by-value arguments are not expanded inline"

can anybody tell me why? I mean, whats the difference between by value
and reference arguments wrt inlining?
Passing the argument by value means a new copy is made. For a class
instance, the copy constructor is used, which could lead to a
potentially large amount of work being done. I _guess_ that somebody
figured that it just wasn't worth it to potentially put that inline.

Nov 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.