Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mhh__
on April 12, 2021
|
parent
|
context
|
favorite
| on:
std::unique_ptr implementation backed by Ethereum ...
Considering unique_ptr is not zero cost, this is fair game I say.
beached_whale
on April 12, 2021
[–]
With clang you can make a unique_ptr that is though. It just cannot be used for the std one as that would break existing code. But clang has an attribute [[clang::trivial_abi]] and with that the cost really is zero compared to a pointer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: