Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxString const& or const wxString&
oBFusCATed:
--- Quote from: Martin K. on November 05, 2012, 02:32:09 pm ---So "wxString const&" is redundant. "const wxString&" is the right way, although gcc seems to handel them equally.
--- End quote ---
No, you're still getting it wrong. Both are the same and it is up to a personal/project preference.
carra:
--- Quote from: oBFusCATed on November 05, 2012, 04:35:40 pm ---Both are the same
--- End quote ---
And this is why const wxString const & str is redundant. Therefore the compiler won't accept it.
oBFusCATed:
--- Quote from: carra on November 05, 2012, 05:31:11 pm ---And this is why const wxString const & str is redundant. Therefore the compiler won't accept it.
--- End quote ---
No, this is the same as const const wxString, so it is just a syntax error...
Navigation
[0] Message Index
[*] Previous page
Go to full version