21 Sep
2010
21 Sep
'10
5:28 p.m.
2010/9/19 Kris De Gussem <kris.degussem@...400...>:
This would result in: gchar * const get_help (void) { return _help; }
Or is there something that I am missing? BTW: this is just an example, the same reasoning is valid for the listings in parameter.h
Condensed reply: The warning tells you to mark the function as const, so it can be called when you use a constant reference or a constant pointer to the object. It's not related to const return types or const parameters.
Here's some more information: http://msdn.microsoft.com/en-us/library/6ke686zh%28VS.80%29.aspx
Regards, Krzysztof