this post was submitted on 11 Nov 2023
19 points (88.0% liked)
C++
1773 readers
5 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, I meant to include that in my post but forgot. I actually started out thinking that it wouldn't be too hard to implement on top of
std::optional
but then went down a rabbit hole to see if it already existing in the standard library.In any case, you could also always use abseil for features that haven't landed in the compiler yet. At work, I'm stuck on c++14, but having a great time using plenty of features from later versions thanks to abseil.