From b0538eba48ffa8e638320333dba39c570f8c346f Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 28 Jul 2024 22:00:15 +0200 Subject: [PATCH] added make_copy --- test/common_helper/test.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common_helper/test.hpp b/test/common_helper/test.hpp index 9677502..3186d75 100644 --- a/test/common_helper/test.hpp +++ b/test/common_helper/test.hpp @@ -20,6 +20,8 @@ template consteval std::size_t c_arr_len(T (&arr)[N]) { return N; } +constexpr auto make_copy(auto& value) -> std::remove_cvref_t { return value; } + #define ADD_TYPE_HINT(type) template <> constexpr const char* const to_type_hint_str::value = #type #define TEST_FAIL(msg) ret_val_s { "", ReturnCode::FAILED, msg }