Change operator* and operator-> to throw instead of having a precondition

This commit is contained in:
Peter Dimov
2026-02-21 03:26:49 +02:00
parent 0ff6989330
commit 9ead4aeea9
16 changed files with 228 additions and 141 deletions
+9
View File
@@ -74,6 +74,15 @@ result<void> fw0()
return {};
}
struct E2
{
};
BOOST_NORETURN void throw_exception_from_error( E const &, boost::source_location const& )
{
throw E2();
}
int main()
{
{