|
-
January 24th, 2013, 01:12 PM
#10
Re: 'const' member functions
 Originally Posted by John E
Good point. I wouldn't have thought of that....
It looks reasonably safe (I think). It just wraps a standard 'C' function (which returns a GdkWindow*). That's then used to create a Glib::RefPtr which gets returned to the caller.
You can create a duplication function, stick the const keyword at the end of it, call it in your main function, and compile.
If the compiler doesn't like it, you'll know what in there can be potentially dangerous.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|