From 64ac1ae8cb1dd09c0ef9f36ad54442073ef65674 Mon Sep 17 00:00:00 2001 From: Matthias Schimek Date: Thu, 12 Sep 2024 14:55:06 +0200 Subject: [PATCH] ... --- include/kamping/data_buffer.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/kamping/data_buffer.hpp b/include/kamping/data_buffer.hpp index e84eb4558..7f3b743ad 100644 --- a/include/kamping/data_buffer.hpp +++ b/include/kamping/data_buffer.hpp @@ -73,7 +73,7 @@ class Extractable { #endif }; -/// @brief Class optionally containing a copy constructor while supporting move assignment/construction0 +/// @brief Class optionally containing a copy constructor while supporting move assignment/construction. /// /// @tparam enable_copy_constructor Indicates whether the copy constructor should be enabled. /// You can inherit from this class privately. @@ -277,7 +277,7 @@ enum class BufferOwnership { owning, referencing }; /// @brief Check whether copy construction is allowed for the given ownership template -inline constexpr bool enable_copy_construction = ownership == BufferOwnership::referencing; +inline constexpr bool enable_copy_construction_v = (ownership == BufferOwnership::referencing); /// @brief Enum to specify whether a buffer is allocated by the library or the user enum class BufferAllocation { lib_allocated, user_allocated }; @@ -367,7 +367,7 @@ template < BufferResizePolicy buffer_resize_policy_param, BufferAllocation allocation = BufferAllocation::user_allocated, typename ValueType = default_value_type_tag> -class DataBuffer : private CopyMoveEnabler>, private Extractable { +class DataBuffer : private CopyMoveEnabler>, private Extractable { public: static constexpr TParameterType parameter_type = parameter_type_param; ///< The type of parameter this buffer represents. @@ -622,7 +622,7 @@ template < BufferModifiability modifiability, BufferOwnership ownership, BufferType buffer_type_param> -class GenericDataBuffer : private CopyMoveEnabler>, private Extractable { +class GenericDataBuffer : private CopyMoveEnabler>, private Extractable { public: static constexpr TParameterType parameter_type = parameter_type_param; ///< The type of parameter this buffer represents.