Upgrade to latest Visual Studio. Suddenly tons of code that now doesn't compile. *sigh*
-
Näytä tämä ketju
-
After updating, lots of the code errors were legitimate that was on code that didn't run because it was templated. I guess the new compiler runs checks on template code even if not instantiated. That's cool.
#cplusplus#visualstudio1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
But I'm getting this one error and I have no idea why. Prior to updating, this code worked fine. I've reproduced the error in a ~30 line snippet. Anybody know why this won't compile? What stupid obvious thing am I missing? Why was it able to compile before?pic.twitter.com/LGqZQaJ0ZI
3 vastausta 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
After a bit of futsing and just trying random things, I discovered that protected members have to be accessed by 'this->'. Highlighted the code for the difference. PSA to all you upgrading to latest VS, I guess.pic.twitter.com/DWiuzZsZJ2
1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
Vastauksena käyttäjälle @tloch14
That doesn't seem right. m_pData would be in scope if it's a protected member. Compiler bug?
1 vastaus 0 uudelleentwiittausta 0 tykkäystä
Timothy Lochner uudelleentwiittasi Shafik Yaghmour
See this response:https://twitter.com/shafikyaghmour/status/1032480825856602112?s=21 …
Timothy Lochner lisäsi,
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.