Fix some compile errors
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user