jeudi 12 mars 2015

String Is Empty Visual Studio


Ok I'm stumped with this. In this code if I breakpoint right under this line "inID" vanishes and becomes ""



const std::vector<CaffApp::Dev::AttributeFormatDesc> vertFmtDesc = {{
//CaffApp::Dev::AttributeFormatDesc{"inPosition", CaffApp::Dev::AttrType::FLOAT2},
CaffApp::Dev::AttributeFormatDesc{"inID", CaffApp::Dev::AttrType::FLOAT},
}};


However if I uncomment the line above.



const std::vector<CaffApp::Dev::AttributeFormatDesc> vertFmtDesc = {{
CaffApp::Dev::AttributeFormatDesc{"inPosition", CaffApp::Dev::AttrType::FLOAT2},
CaffApp::Dev::AttributeFormatDesc{"inID", CaffApp::Dev::AttrType::FLOAT},
}};


Then both "inPosition" and "inID" are present.


I'm hoping this is something to do with some VS encoding setting, but this is nuts. I've rewritten in, written it in another editor and cut and paste it back.


I have tried the advanced save options and made sure its what all the other code is in. UTF-8 with signature


Any ideas?




Aucun commentaire:

Enregistrer un commentaire