forked from mpusz/mp-units
fixed_string fixed
This commit is contained in:
@@ -44,8 +44,8 @@ namespace units {
|
|||||||
|
|
||||||
[[nodiscard]] constexpr friend bool operator==(const basic_fixed_string& lhs, const basic_fixed_string& rhs) noexcept
|
[[nodiscard]] constexpr friend bool operator==(const basic_fixed_string& lhs, const basic_fixed_string& rhs) noexcept
|
||||||
{
|
{
|
||||||
for(size_t i = 0; i != size(lhs.data_); ++i)
|
for(size_t i = 0; i != lhs.size(); ++i)
|
||||||
if(lhs.name_[i] != rhs.data_[i])
|
if(lhs.data_[i] != rhs.data_[i])
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user