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 -
Vastauksena käyttäjälle @tloch14
Short answer MSVC did not do two phase lookup properly https://blogs.msdn.microsoft.com/vcblog/2017/09/11/two-phase-name-lookup-support-comes-to-msvc/ … When you add this-> it makes it a dependent type and the lookup is deferred until the type is known.
1 vastaus 1 uudelleentwiittaus 2 tykkäystä
It's good to see MSVS becoming more compliant.
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.