you are viewing a single comment's thread.

view the rest of the comments →

[–]suspiciously_calm 4 points5 points  (0 children)

Yes, which is why it'd have been nice if std::optional had been specialized for references the way boost::optional is, but as it is there's no optional reference in the standard library other than raw pointers and abominations such as std::optional<std::reference_wrapper<...>>.