BAN: Add math to its own namespace
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include <BAN/String.h>
|
||||
#include <BAN/StringView.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace BAN
|
||||
@@ -200,7 +199,7 @@ namespace BAN
|
||||
{
|
||||
if (m_capasity >= size)
|
||||
return {};
|
||||
size_type new_cap = BAN::max<size_type>(size, m_capasity * 1.5f);
|
||||
size_type new_cap = BAN::Math::max<size_type>(size, m_capasity * 1.5f);
|
||||
void* new_data = BAN::allocator(new_cap);
|
||||
if (new_data == nullptr)
|
||||
return Error::FromString("String: Could not allocate memory");
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <BAN/StringView.h>
|
||||
#include <BAN/Vector.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace BAN
|
||||
|
||||
Reference in New Issue
Block a user