libluna/StaticString: Rename OSize to OtherSize
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c51b119eb4
commit
c376477080
@ -11,7 +11,7 @@ template <usize Size> class StaticString
|
||||
adopt(string);
|
||||
}
|
||||
|
||||
template<usize OSize> StaticString(const StaticString<OSize>& other)
|
||||
template<usize OtherSize> StaticString(const StaticString<OtherSize>& other)
|
||||
{
|
||||
adopt(other.chars());
|
||||
}
|
||||
@ -30,9 +30,9 @@ template <usize Size> class StaticString
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <usize OSize> StaticString<Size>& operator=(const StaticString<OSize>& string)
|
||||
template <usize OtherSize> StaticString<Size>& operator=(const StaticString<OtherSize>& string)
|
||||
{
|
||||
if constexpr (OSize == Size)
|
||||
if constexpr (OtherSize == Size)
|
||||
{
|
||||
if (this == &string) return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user