added make_copy
This commit is contained in:
parent
99690fd38b
commit
b0538eba48
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in New Issue