Code: Select all
m_object->AppendCustomValue(event.GetString())
AppendCustomValue is defined as AppendCustomValue(wxString&)
Xcode pops up an error saying there is no matching function for the call AppendCustomValue(wxString) and that the likely candidate is AppendCustomValue(wxString&)
Apparently, GCC differs from the Visual Studio compiler in that the MSW compiler will auto convert a returned object into a reference and GCC will not. Is this correct?
My workaround code is
Code: Select all
wxString st;
st = event.GetString();
wxString& temp = st;
m_object->AppendCustomValue(temp);