Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
shultays
on Aug 30, 2022
|
parent
|
context
|
favorite
| on:
Packed structs in Zig make bit/flag sets trivial
<source>(6): error C7582: 't': default member initializers for bit-fields requires at least '/std:c++20'
It is c++20 apparently
https://godbolt.org/z/qvso544dr
eqvinox
on Aug 30, 2022
[–]
Ah, I misunderstood / didn't look properly and failed to notice this is a default value
in the struct definition
. My bad.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
It is c++20 apparently https://godbolt.org/z/qvso544dr