BAN: Remove empty else. Builds with -Wall -Wextra
This commit is contained in:
parent
0f74e123b8
commit
805b4096e9
|
@ -42,9 +42,10 @@ namespace BAN
|
||||||
void destruct(size_t index, uint8_t* data)
|
void destruct(size_t index, uint8_t* data)
|
||||||
{
|
{
|
||||||
if (index == 0)
|
if (index == 0)
|
||||||
|
{
|
||||||
if constexpr(!is_lvalue_reference_v<T>)
|
if constexpr(!is_lvalue_reference_v<T>)
|
||||||
reinterpret_cast<T*>(data)->~T();
|
reinterpret_cast<T*>(data)->~T();
|
||||||
else;
|
}
|
||||||
else if constexpr(sizeof...(Ts) > 0)
|
else if constexpr(sizeof...(Ts) > 0)
|
||||||
destruct<Ts...>(index - 1, data);
|
destruct<Ts...>(index - 1, data);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue