Comment

Comment by mhh__

https://gcc.godbolt.org/z/TMYso5

If you pass a unique_ptr it has to have redirection through a pointer, so it isn't quite zero cost.

However, since the entire point of using a smart pointer is to control the ownership I'm not that bothered.

parent mhh__ 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton