From: Wolfgang Bangerth Date: Mon, 2 Apr 2018 16:17:00 +0000 (-0600) Subject: Update thread_management.h X-Git-Tag: v9.0.0-rc1~248^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6135%2Fhead;p=dealii.git Update thread_management.h --- diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index 087a49cb24..b2f534225b 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -1047,7 +1047,7 @@ namespace Threads * int i = t.return_value(); // i is now 42 * @endcode * You will rarely have a need to write such code. On the other hand, - * the function needs to return a writable reference to support + * the function needs to return a writable (non-@p const) reference to support * code such as this: * @code * std::unique_ptr create_int (const std::string &s) { ... } @@ -1066,7 +1066,7 @@ namespace Threads * std::unique_ptr objects can not be copied. In other words, * to get the pointer out of the object returned from the thread, it needs * to be moved, and in order to be moved, the current function needs to - * return a writable reference. + * return a writable (non-@p const) reference. */ typename internal::return_value::reference_type return_value () @@ -1754,7 +1754,7 @@ namespace Threads * int i = t.return_value(); // i is now 42 * @endcode * You will rarely have a need to write such code. On the other hand, - * the function needs to return a writable reference to support + * the function needs to return a writable (non-@p const) reference to support * code such as this: * @code * std::unique_ptr create_int (const std::string &s) { ... } @@ -1773,7 +1773,7 @@ namespace Threads * std::unique_ptr objects can not be copied. In other words, * to get the pointer out of the object returned from the task, it needs * to be moved, and in order to be moved, the current function needs to - * return a writable reference. + * return a writable (non-@p const) reference. * * @pre You can't call this function if you have used the default * constructor of this class and have not assigned a task object to it. In