ThreadSky
About ThreadSky
Log In
lesleylai.info
•
98 days ago
Bitten by strict aliasing (I should know better rather than writing codes like this)
Comments
Log in
with your Bluesky account to leave a comment
[–]
kaboissonneault.bsky.social
•
98 days ago
Funny, I'd have thought it would work if buffer was a pointer to char, unsigned char, or std::byte. What type was it?
1
1
reply
[–]
lesleylai.info
•
98 days ago
It is an array of uint8_t
0
reply
[–]
thelvishow.bsky.social
•
96 days ago
What is the type of p2? Why did you cast to (void*)?
0
reply
[–]
omershapira.com
•
98 days ago
What was the intention here specifically? This looks like tricks you’d do in a vtable helper
1
1
reply
[–]
lesleylai.info
•
98 days ago
It's part of a unit test for an arena allocator. I was verifying that the arena's pointer bump behaves correctly.
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments