I have this code .
CGraphicTextInstance*& prGuildNameInstance = pTextTail->pGuildNameTextInstance;
And i want to apply some c++11 features like auto
transform.
After auto should look like this:
auto prGuildNameInstance = pTextTail->pGuildNameTextInstance;
After add auto the auto assign just CGraphicTextInstance
without operators *&
I saw this with intelisense.
My question is why ? Should i add manually missing operators ? like this ?
auto &prGuildNameInstance = pTextTail->pGuildNameTextInstance;
My question can this damage my codes ? Can this be a problem ? Is ok to let auto assign what he want ?
Aucun commentaire:
Enregistrer un commentaire