The definition of the exposition-only AS-EXCEPT-PTR has a case for when the error is already an exception_ptr that has the following requirement:
Mandates: err != exception_ptr() is true
"Mandates" clauses are usually for things which are ill-formed and can be detected at compile-time.
However this is a runtime property and so should probably be a Precondition: instead.
The definition of the exposition-only
AS-EXCEPT-PTR
has a case for when the error is already anexception_ptr
that has the following requirement:"Mandates" clauses are usually for things which are ill-formed and can be detected at compile-time. However this is a runtime property and so should probably be a
Precondition:
instead.Also, could be simplified to: