added make_copy

This commit is contained in:
Patrick 2024-07-28 22:00:15 +02:00
parent 99690fd38b
commit b0538eba48
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@
template<typename T, std::size_t N>
consteval std::size_t c_arr_len(T (&arr)[N]) { return N; }
constexpr auto make_copy(auto& value) -> std::remove_cvref_t<decltype(value)> { return value; }
#define ADD_TYPE_HINT(type) template <> constexpr const char* const to_type_hint_str::value<type> = #type
#define TEST_FAIL(msg) ret_val_s { "", ReturnCode::FAILED, msg }