Explicit else in exception handling

This commit is contained in:
Francisco Javier Jurado Moreno 2024-05-28 09:28:26 +02:00
parent ad647786a1
commit b05501f82c

View File

@ -91,11 +91,13 @@ public:
}
catch (...)
{
if constexpr (error_handling == ErrorHandling::Exception)
throw;
res_data[i] = 0;
if constexpr (error_handling == ErrorHandling::Null)
col_null_map->getData()[i] = 1;
if constexpr (error_handling == ErrorHandling::Exception) { throw; }
else
{
res_data[i] = 0;
if constexpr (error_handling == ErrorHandling::Null)
col_null_map->getData()[i] = 1;
}
}
}
if constexpr (error_handling == ErrorHandling::Null)