forked from mpusz/mp-units
refactor: avoid always false comparison
This commit is contained in:
committed by
Mateusz Pusz
parent
deb1ee6efa
commit
67b1c499d1
@@ -44,6 +44,7 @@ struct basic_fixed_string {
|
||||
|
||||
constexpr basic_fixed_string(const CharT (&txt)[N + 1]) noexcept
|
||||
{
|
||||
if constexpr (N != 0)
|
||||
for (std::size_t i = 0; i < N; ++i) data_[i] = txt[i];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user