From: Wolfgang Bangerth Date: Thu, 25 Jul 2024 23:53:48 +0000 (-0600) Subject: Hide implementation from doxygen to avoid errors. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17374%2Fhead;p=dealii.git Hide implementation from doxygen to avoid errors. --- diff --git a/include/deal.II/base/lazy.h b/include/deal.II/base/lazy.h index 40d62f8553..37a066b743 100644 --- a/include/deal.II/base/lazy.h +++ b/include/deal.II/base/lazy.h @@ -278,6 +278,7 @@ private: // ------------------------------- inline functions -------------------------- +#ifndef DOXYGEN template DEAL_II_CXX20_REQUIRES((std::is_move_constructible_v && @@ -399,9 +400,9 @@ inline DEAL_II_ALWAYS_INLINE // https://en.cppreference.com/w/cpp/atomic/memory_order#Release-Acquire_ordering // if (!object_is_initialized.load(std::memory_order_acquire)) -#ifdef DEAL_II_HAVE_CXX20 +# ifdef DEAL_II_HAVE_CXX20 [[unlikely]] -#endif +# endif { // Check again. If this thread won the race to the lock then we // would like to initialize the object. Otherwise another thread has @@ -506,6 +507,7 @@ std::size_t Lazy::memory_consumption() const sizeof(*this) - sizeof(task_result); } +#endif DEAL_II_NAMESPACE_CLOSE #endif diff --git a/include/deal.II/base/task_result.h b/include/deal.II/base/task_result.h index b0a1ecb357..9252d27fda 100644 --- a/include/deal.II/base/task_result.h +++ b/include/deal.II/base/task_result.h @@ -394,6 +394,7 @@ namespace Threads // ------------------------------- inline functions -------------------------- +#ifndef DOXYGEN template inline TaskResult::TaskResult(TaskResult &&other) noexcept @@ -615,8 +616,12 @@ namespace Threads join(); return task_result.value(); } + +#endif + } // namespace Threads + /** * @} */