Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
JoshuaAshton
· 7y ago · 0 comments
This forces you to allocate it on the heap... The C init function didn't require this.
Comments
[–]
kllrnohj
7y ago
Have it return by value in an optional then if that's what you want. You're not forced to do it on the heap. Or if for some reason you need to be able to pick you can do the whole templated allocator song & dance.