Y
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
midjji
1779 days ago
You are practically guaranteed to invoke undefined behaviour if you do. Just use a map on a std::array of e.g. std::byte
link
dexterhaslem
1779 days ago
they said C11 tho
link