Y
Hacker News
new
|
ask
|
show
|
jobs
by
TheCoelacanth
2956 days ago
Neither of those is hard to do in C++. The first one is std::optional. The second one is a reference or a non-nullable smart pointer like
https://github.com/dropbox/nn
1 comments
frabert
2955 days ago
It's easy to do _since less than a year_
link
jandrese
2955 days ago
And probably not in your compiler yet. Or if it is, you'll blow up on thousands of other compilers when people try to build it themselves.
link
jcelerier
2953 days ago
boost::optional has been available since 2003. There's no excuse.
link