BAN: Remove empty else. Builds with -Wall -Wextra

This commit is contained in:
Bananymous 2023-12-07 23:50:35 +02:00
parent 0f74e123b8
commit 805b4096e9
1 changed files with 2 additions and 1 deletions

View File

@ -42,9 +42,10 @@ namespace BAN
void destruct(size_t index, uint8_t* data)
{
if (index == 0)
{
if constexpr(!is_lvalue_reference_v<T>)
reinterpret_cast<T*>(data)->~T();
else;
}
else if constexpr(sizeof...(Ts) > 0)
destruct<Ts...>(index - 1, data);
else