diff --git a/include/etl/memory.h b/include/etl/memory.h index e1c4fdeb..3f461d46 100644 --- a/include/etl/memory.h +++ b/include/etl/memory.h @@ -976,7 +976,7 @@ namespace etl template ETL_CONSTEXPR20 T* construct_at(T* p, TArgs&&... args) { - return std::construct_at(o, etl::forward(args)...); + return std::construct_at(p, etl::forward(args)...); } #endif @@ -2100,7 +2100,7 @@ namespace etl T* begin() { - return reinterpret_cast(raw); + return reinterpret_cast(raw); } const T* begin() const @@ -2110,7 +2110,7 @@ namespace etl T* end() { - return reinterpret_cast(raw + (sizeof(T) * N_Objects)); + return reinterpret_cast(raw + (sizeof(T) * N_Objects)); } const T* end() const