You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I was looking through an open-source train wreck, and a certain
function is overloaded. There are 4 definitions of the function
with 3,4,5 or 7 arguments.
Now the function with this name is called with 3,4,6 or 7 arguments.
The call with 6 arguments has used the first 6 of the 7 definition
but dropped the last argument (integer).
So will it just zero for the missing argument?
Victor Bazarov
unread,
Jun 21, 2016, 7:42:55 AM6/21/16
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Look at the declaration of the function with 7 arguments. Most likely
it has a default value for the 7th one. The compiler will not supply
any value unless it's specified.
V
--
I do not respond to top-posted replies, please don't ask