Upgrade to latest Visual Studio. Suddenly tons of code that now doesn't compile. *sigh*
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
-
-
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ä ketjuKiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
-
-
Apparently this also would have worked. Was bothering me so much I looked it up. Apparently VS has been lax about this rule until now. *shrug*pic.twitter.com/SViHEeEH1l
Näytä tämä ketjuKiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
-
-
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.
-
It's good to see MSVS becoming more compliant.
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.