Fix vector<T>::acquire() arguments

This commit is contained in:
Morilli 2021-05-26 03:25:40 +02:00 committed by Screwtapello
parent 55e05c89c2
commit 64d484476d
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ struct vector_base {
//memory.hpp
auto reset() -> void;
auto acquire(const T* data, uint64_t size, uint64_t capacity = 0) -> void;
auto acquire(T* data, uint64_t size, uint64_t capacity = 0) -> void;
auto release() -> T*;
auto reserveLeft(uint64_t capacity) -> bool;

View File

@ -19,7 +19,7 @@ template<typename T> auto vector<T>::reset() -> void {
//acquire ownership of allocated memory
template<typename T> auto vector<T>::acquire(const T* data, uint64_t size, uint64_t capacity) -> void {
template<typename T> auto vector<T>::acquire(T* data, uint64_t size, uint64_t capacity) -> void {
reset();
_pool = data;
_size = size;