|
Ciaphas posted:whyyyy did i use std::pair instead of making a god damned struct with a constructor so the compiler would error or at least warn on this poo poo yeah c++’s love of default initialization is a huge design mistake. it gets overlooked when people talk about default init because u.b. is an even more glaring problem but that’s fixable whereas the language not forcing you to use meaningful values is not a simplified version of this (just with a local variable) was in my c++now talk a few weeks ago. i’ll steal this aggregate thing though for the next time i need to talk about it
|
# ¿ Jun 6, 2023 18:39 |
|
|
# ¿ May 16, 2024 16:30 |