Hacker News new | ask | show | jobs
by rightbyte 1779 days ago
I don't regard this as a "perverse" hack. If I ever do embedded memory mapped stuff in C11 this is way too tempting.
1 comments

You are practically guaranteed to invoke undefined behaviour if you do. Just use a map on a std::array of e.g. std::byte
they said C11 tho