auto a = !+[](){}; This code is rejected by:
-
-
Vastauksena käyttäjälle @lunasorcery
What this code is doing? On CE the type of 'a' is bool but I have no idea why
1 vastaus 0 uudelleentwiittausta 0 tykkäystä
Vastauksena käyttäjille @ferociousduck ja @lunasorcery
Lambdas can decay to a function pointer if they have no capture. Unary + forces the decay. ! Then converts a simple pointer to a bool.
4.34 - 5. helmik. 2019
0 vastausta
0 uudelleentwiittausta
2 tykkäystä
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.