Upgrade to latest Visual Studio. Suddenly tons of code that now doesn't compile. *sigh*
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 #visualstudio
-
-
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
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
Näytä tämä ketju
Keskustelun loppu
Uusi keskustelu -
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.