Hi,
I know that this is not really a Code::Blocks related question, but maybe it is some type of Code::Blocks coding standard:
Given is a function that accepts a reference to a wxString. This function will never change this string. What is your prefered const handling?
function(const wxString& str)
{
}
or
function(wxString const& str)
{
}
I can found the first and the second form in Code::Blocks source, as far as i can see the second form in newer code.
GCC seems to handle all forms as the same, a str += _T("test") will fail.
In my opinion the 2. form should be the right form (reference to constant wxString), what do you mean about this?
Martin
P.S. GCC don't like (const wxString const & str)