2 ms·
> Everything starts to look a lot like std::unique_ptr which I think is mostly unneeded as it ads pointer indirection. Interesting, why is this? I would have
by cogman10 3y ago
> Everything starts to look a lot like std::unique_ptr which I think is mostly unneeded as it ads pointer indirection.
Interesting, why is this? I would have assumed the compiler could have optimized away that indirection.
[1] https://godbolt.org/z/9Pqqqz5a7 https://godbolt.org/z/9Pqqqz5a7
- steveklabnik 3y agohttps://stackoverflow.com/questions/58339165/why-can-a-t-be-passed-in-register-but-a-unique-ptrt-cannot https://stackoverflow.com/questions/58339165/why-can-a-t-be-...