News for hackers. Stuff that matters.
Re:Modern C++ for C Programmers (2018) by beached_whale on Friday July 23, 2021 @10:18PM (#27937870)
I do a lot of static_asserts and small composable constexpr methods so that when I am wrong I get a compile failure. Actually with IDE's I get a little overlay telling me the error usually.

Constexpr methods seem perfect for embedded in a lot of ways too. Yes, I won't be touching real memory or ports, but I can ensure that the method isn't doing silly things either. Having a memory address class that filters on the proper operations and only allows them is awesome. Saw a good video on the topic recently too https://www.youtube.com/watch?v=fsMmh8F8uV0

There are no comments on this comment yet.