chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Remove optional converstions that change the inner type #448

Closed danakj closed 10 months ago

danakj commented 10 months ago

This is abnormal for C++ containers. In the future std::optional may gain the ability to hold a reference so we don't want to convert from references to pointers now since that would mean the wrong thing happens later or a breaking change would be needed. Instead provide docs saying how to go from a reference to a pointer or value.