mirror of
https://github.com/NoelFB/blah.git
synced 2025-07-05 20:35:26 +08:00
fixing c standard lib includes
This commit is contained in:
@ -17,13 +17,13 @@ namespace Blah
|
||||
|
||||
char& operator[](int index)
|
||||
{
|
||||
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
|
||||
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
|
||||
return s_ptr()[index];
|
||||
}
|
||||
|
||||
const char& operator[](int index) const
|
||||
{
|
||||
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
|
||||
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
|
||||
return s_ptr()[index];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user