Update documentation

This commit is contained in:
Peter Dimov
2022-02-17 01:23:30 +02:00
parent 26f3ce3c5c
commit 68d092f4d7
3 changed files with 18 additions and 16 deletions
+4 -3
View File
@@ -130,7 +130,8 @@ template<class E> boost::source_location get_throw_location( E const & e );
```
Requires: :: `E` must be polymorphic.
Effects: :: If `e` is a subobject of the object thrown by
`boost::throw_with_location( x, loc )`, returns `loc`. Otherwise, returns
a default constructed source location.
Effects: ::
* If `e` is a subobject of the object thrown by `boost::throw_with_location( x, loc )`, returns `loc`.
* If `dynamic_cast<boost::exception const*>( e )` returns a nonzero value, returns the source location stored in that `boost::exception` subobject, if any.
* Otherwise, returns a default constructed source location.