types/description: add support for make_description<void>
This commit is contained in:
parent
effab40a14
commit
94d891c973
@ -70,10 +70,17 @@ namespace cruft::types {
|
|||||||
constexpr description
|
constexpr description
|
||||||
make_description (void) noexcept
|
make_description (void) noexcept
|
||||||
{
|
{
|
||||||
return {
|
if constexpr (std::is_void_v<T>) {
|
||||||
.category = category_traits_v<T>,
|
return {
|
||||||
.width = sizeof (T)
|
.category = category::NONE,
|
||||||
};
|
.width = 0,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
.category = category_traits_v<T>,
|
||||||
|
.width = sizeof (T)
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user