Shea Levy
unread,Sep 4, 2014, 3:04:43 PM9/4/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ats-lan...@googlegroups.com
Hi all,
Is there any way to declare a function call-by-reference but not allow
it to modify its arguments? Similarly, is there a way to pass a value
(not a variable) to such a function?
For my particular use case, I want to wrap the bind function, which
takes a const pointer to a struct sockaddr, and there's no inherent
reason why a program shouldn't be able to declare one as a val.
~Shea