Update documentation

This commit is contained in:
Peter Dimov
2022-02-12 20:59:49 +02:00
parent b3a7f8e178
commit 8608fdd923

View File

@ -194,9 +194,10 @@ take a source location argument that defaults to `BOOST_CURRENT_LOCATION`.
This allows the source location attached to the exception to point at This allows the source location attached to the exception to point at
the location of the call to `f2`, rather than inside of `f2`. the location of the call to `f2`, rather than inside of `f2`.
Since `f2` is typically called many times, this is usually what we want, Since functions such as `f2` are typically called from more than one place
because it enables us to identify the throwing call, rather than merely in the program, this is usually what we want, because it enables us to
to know that it was `f2` that threw. identify the throwing call, rather than merely to know that it was `f2`
that threw.
``` ```
#include <boost/throw_exception.hpp> #include <boost/throw_exception.hpp>