1 post tagged #references.
#references
std::optional<T&> was ill-formed for fourteen years, so everyone used a raw pointer and wrote a comment explaining that null means absent. C++26 makes it legal: rebinding assignment, no allocation, and a value type you can return. It compiles and runs on GCC 16.1 today, though libstdc++ has not yet set the feature-test macro.
// We use Google Analytics to understand which posts get traction and how the wro.cpp community grows. Anonymised, no ads, and you can decline -- the site works either way.