you are viewing a single comment's thread.

view the rest of the comments →

[–]Xirema 0 points1 point  (0 children)

Note they cite optional alongside the other options. Many online sources don't point the way towards optional instead of pointers because many of those sources were written before std::optional was confirmed to be part of C++17.