Gonna be presenting an overview on low level c++ programming today to the team. Kinda feels like the blind leading the blind... And so fucking help me if some smartass even mentions UB...
-
-
Vastauksena käyttäjälle @Bobby_Anguelov
But Bobby, you cant memset that struct, it has a private member! (Trash fire intensifies)
3 vastausta 0 uudelleentwiittausta 20 tykkäystä -
Vastauksena käyttäjälle @Atrix256
I saw that... And I'm not touching that with a fucking pole. I'm made peace with the fact that most c++ code, including the STL is UB.
2 vastausta 0 uudelleentwiittausta 8 tykkäystä -
Vastauksena käyttäjille @Bobby_Anguelov ja @Atrix256
I just found out yesterday that type punning (Except to/from char*, apparently) is UB in C++. I don't think I've ever seen a C++ codebase that hasn't used punning somewhere.
1 vastaus 1 uudelleentwiittaus 2 tykkäystä -
Yup - it's bullshit. It's like this mutual suicide pact between compilers and coders that as long as nobody looks directly into the UB, nobody gets hurt. We just share ghost stories about it to scare us both.
1 vastaus 0 uudelleentwiittausta 10 tykkäystä -
I've sorta stopped caring about UB and the standard, pretty much just focus on what the compilers actually do.
3 vastausta 0 uudelleentwiittausta 4 tykkäystä
Unfortunately, the more you want to use constexpr, the more you have to care about UB.
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.