Syntax error fixes

This commit is contained in:
John Wellbelove 2022-02-10 18:41:30 +00:00
parent 64efb84ec3
commit 05e687d8fa

View File

@ -976,7 +976,7 @@ namespace etl
template <typename T, typename... TArgs>
ETL_CONSTEXPR20 T* construct_at(T* p, TArgs&&... args)
{
return std::construct_at(o, etl::forward<TArgs>(args)...);
return std::construct_at(p, etl::forward<TArgs>(args)...);
}
#endif
@ -2100,7 +2100,7 @@ namespace etl
T* begin()
{
return reinterpret_cast<const T*>(raw);
return reinterpret_cast<T*>(raw);
}
const T* begin() const
@ -2110,7 +2110,7 @@ namespace etl
T* end()
{
return reinterpret_cast<const T*>(raw + (sizeof(T) * N_Objects));
return reinterpret_cast<T*>(raw + (sizeof(T) * N_Objects));
}
const T* end() const