meta: cleanup

This commit is contained in:
skypjack
2024-07-14 15:35:49 +02:00
parent e5ef550bcf
commit 36df10fd2c

View File

@@ -457,16 +457,9 @@ public:
template<typename... Value>
meta_factory prop(id_type id, [[maybe_unused]] Value &&...value) {
if constexpr(sizeof...(Value) == 0u) {
this->property(
id,
internal::meta_prop_node{
&internal::resolve<void>});
this->property(id, internal::meta_prop_node{&internal::resolve<void>});
} else {
this->property(
id,
internal::meta_prop_node{
&internal::resolve<std::decay_t<Value>>...,
std::make_shared<std::decay_t<Value>>(std::forward<Value>(value))...});
this->property(id, internal::meta_prop_node{&internal::resolve<std::decay_t<Value>>..., std::make_shared<std::decay_t<Value>>(std::forward<Value>(value))...});
}
return *this;