> Right. You want to pass a library a non-copy that's nullable and you
> don't want the library to delete it, and there's teamwork
> between you and the library.
>
> Pass that library a std::optional<T&> instead of a T*.
>
> Unfortunately std::optional doesn't accept references....it's a compilation error.

This whole discussion thread is a colossal waste of time, and made
worse with such nonsense.

Dear Ville, don't be upset , we all do mistakes.

That facility is in C++26, 

It's  2025 now " make me live today, kill me tomorrow " or so they say.

which means it'll be in the hands of users
much earlier than any hypothetical change
that would make delete null a pointer.