A
Agent Mulder
I feel the need for an outline specifier to
facilitate java-style programming.
facilitate java-style programming.
Agent Mulder said:I feel the need for an outline specifier to
facilitate java-style programming.
Agent said:I feel the need for an outline specifier to
facilitate java-style programming.
...
Agent Mulder said:I feel the need for an outline specifier to
facilitate java-style programming.
Agent Mulder said:VB> Whatever.
That's not enough. [...]
Agent said:VB>I don't want to continue this discussion.
Why not?
Agent said:KHB> I think Victor has the same feeling on this 'feature'
KHB> as I have:
KHB> It's pointless.
KHB> If I don't want a function to be inlined, well, then
KHB> simply don't write the function body in the class
KHB> decleration. Plain and simple. No special keyword
KHB> needed for that.
Modern compilers and linkers are smart enough
that they will inline everything they see fit, defined
inside or out of the class body. You can't trust on
that.
If you want to prevent functions from being inlined, put them in separate
.cpp (or whatever) files and only include their prototypes in the code
that calls them. The compiler cannot inline them, if it doesn't know what
to inline.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.