Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Arenas and the almighty concatenation operator (nullprogram.com)
27 points by asicsp on June 2, 2024 | hide | past | favorite | 1 comment


This implementation has horrible and unmarked mutability problems, which really should (and can) be avoided. I think it's also leaking some memory unnecessarily. The underlying approach is sound though.

The `str{}` can be avoided by adding a second template argument and SFINAE'ing that it can be converted to the first one. Or just overloading as for integers.

Some microoptimizations jumped out but those are premature.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: