StaticString: Add a constructor that takes in another StaticString
This commit is contained in:
parent
abdd460525
commit
c51b119eb4
@ -11,6 +11,11 @@ template <usize Size> class StaticString
|
||||
adopt(string);
|
||||
}
|
||||
|
||||
template<usize OSize> StaticString(const StaticString<OSize>& other)
|
||||
{
|
||||
adopt(other.chars());
|
||||
}
|
||||
|
||||
void adopt(const char* string)
|
||||
{
|
||||
usize length = strlcpy(m_buffer, string, sizeof(m_buffer));
|
||||
|
Loading…
Reference in New Issue
Block a user