AdcDeviceCommand is now parameter-less

rewrite AdcDeviceAttribute class, basic tests of AdcDeviceAttribute passed
This commit is contained in:
Timur A. Fatkhullin
2024-05-19 20:28:53 +03:00
parent 2661a60b47
commit 534d98994b
5 changed files with 244 additions and 245 deletions

View File

@@ -78,6 +78,15 @@ struct adc_func_traits {
// use of an empty struct here to match std::invoke_result behaivior (at least of GCC)
};
// special case
template <>
struct adc_func_traits<std::nullptr_t> {
using ret_t = std::nullptr_t;
using args_t = std::tuple<>;
using arg1_t = std::nullptr_t;
static constexpr size_t arity = 0;
};
template <typename R, typename... Args>
struct adc_func_traits<R (*)(Args...)> : adc_func_traits_helper_t<R, Args...> {
};

View File

@@ -148,6 +148,8 @@ static VT AdcTrivialDeserializer(SerializedT&& s_value)
} else {
static_assert(false, "TRIVIAL DESERIALIZER: UNSUPPORTED SERIALIZING TYPE!!!");
}
return VT();
}