C++ Logo

std-discussion

Advanced search

annoting about std::unexpected() function invocation

From: mauro russo <ing.russomauro_at_[hidden]>
Date: Thu, 23 Oct 2025 12:38:21 +0200
Hello,

I found out that [diff.cpp03.class] refers about calling std::unexpected()
which is by then removed since C++17.

Would it be fair to add a footnote for it,
so that the document remains self-consistent ?

I am not aware how reference to removed stuff is managed
along the standard versions, so please apologize if this
post appears useless.

I did found out the section [zombie.names] in the standard, and I do see
that std::unexpected cannot be listed there, as now we have the class
introduced in C++23.

So, a footnote in [diff.cpp03.class] would be likely fair as alternative,
isn't it ?

Thanks,
Mauro.

Received on 2025-10-23 10:38:33