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 (...) catch (...)
{ {
if constexpr (error_handling == ErrorHandling::Exception) if constexpr (error_handling == ErrorHandling::Exception) { throw; }
throw; else
res_data[i] = 0; {
if constexpr (error_handling == ErrorHandling::Null) res_data[i] = 0;
col_null_map->getData()[i] = 1; if constexpr (error_handling == ErrorHandling::Null)
col_null_map->getData()[i] = 1;
}
} }
} }
if constexpr (error_handling == ErrorHandling::Null) if constexpr (error_handling == ErrorHandling::Null)