Invisible <voi### [at] devnull> wrote:
> I can certainly see why the standard doesn't mandate anything either
> way. Do you happen to know the "typical" behaviour of any well-known C++
> compilers? (Presumably it varies depending on the optimisation level you
> select...)
Compilers use some kind of heuristic to determine whether it's beneficial
to inline some function or not. What those heuristics are, I don't know.
From the programmer's point of view, it doesn't really matter. The program
will behave identically in either case (except maybe a small difference in
execution speed).
--
- Warp
Post a reply to this message
|