From c22fe3076a2f3484aa69f970a9357ad92e1bcd0c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 25 Jul 2024 17:53:48 -0600 Subject: [PATCH] Hide implementation from doxygen to avoid errors. --- include/deal.II/base/lazy.h | 6 ++++-- include/deal.II/base/task_result.h | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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 + /** * @} */ -- 2.39.5