Fix some compile errors

This commit is contained in:
2023-11-13 19:58:23 +01:00
parent 0b831397b3
commit 6356075227
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
#pragma once #pragma once
#include "Base/UUID.hpp" #include "Base/UUID.hpp"
#include <algorithm>
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <mutex> #include <mutex>

View File

@@ -105,7 +105,7 @@ namespace OpenVulkano
Array& operator=(const Array<T>& rhs) Array& operator=(const Array<T>& rhs)
{ {
if (this == &rhs) return *this; if (this == &rhs) return *this;
Resize(rhs.size()); Resize(rhs.Size());
for(size_t i = 0; i < size; i++) for(size_t i = 0; i < size; i++)
{ {
new (&data[i]) T(rhs[i]); new (&data[i]) T(rhs[i]);
@@ -311,7 +311,7 @@ namespace OpenVulkano
template<typename T> template<typename T>
inline bool operator==(const Array<T>& lhs, const Array<T>& rhs) inline bool operator==(const Array<T>& lhs, const Array<T>& rhs)
{ {
return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin()); return lhs.Size() == rhs.Size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());
} }
template<typename T> template<typename T>