به Nostr بپیوندید
2025-12-04 04:42:50 UTC

🇺🇦 haxadecimal 🚫👑 on Nostr: I found and fixed my most recent C++ issue. It wasn't in the code I was working on at ...

I found and fixed my most recent C++ issue. It wasn't in the code I was working on at all; that just exposed an extremely stupid thing I'd done elsewhere.
Up-casting member pointers to a base type that doesn't have the member in question seems to work fine in GCC, although I think it might officially be UB, and that might be changed to not be UB in C++26 (P0149r3).
Obviously I can only actually dereference the member pointer with the correct object type.