Elektrine lite

← Feed

@jens@social.finkhaeuser.de

Post #1981526

2026-05-04 06:18 UTC

@typeswitch Nice! Iterators in C++ are of course modelled on C pointers, so that part was not too surprising. The anonymous struct hack is cute, though. I wouldn't have thought of that, I don't think!

Replies (1)

  • @oblomov@sociale.network 2026-05-04 07:06

    @jens @typeswitch I am conflicted between quoting Jurassic Park here, and wondering «wait a second, when did C introduce typeof?» (then I checked the godbolt and saw -std=c2*, «ah»). The struct trick is pretty nifty.

    Open ##1981527