Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
C++ FAQ Lite 12.3
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="James Kanze, post: 3794333"] Aha. I'd missed the pass by value. It's not very idiomatic, and will confuse programmers (which IMHO are good reasons not to use it), but it will work. And you're still missing a return:-). I could probably do with more coffee too, since I didn't see the pass by value:-). Plus missing the return statement in a function which has a non-void return type. But all compilers should catch the first, good compilers will warn about the second, and the correction is obvious in both case. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
C++ FAQ Lite 12.3
Top