More VS fixes
Former-commit-id: 356effb816b9527ff9e89ee3b99074c468455b08
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Utility/IndexMapper.hpp>
|
||||
#include <iterator>
|
||||
#include <Nazara/Utility/Debug.hpp>
|
||||
|
||||
inline NzIndexIterator::NzIndexIterator() :
|
||||
@@ -155,4 +156,17 @@ inline NzIndexIterator::Reference::operator nzUInt32() const
|
||||
return m_mapper->Get(m_index);
|
||||
}
|
||||
|
||||
namespace std
|
||||
{
|
||||
template<>
|
||||
struct iterator_traits<NzIndexIterator>
|
||||
{
|
||||
using difference_type = ptrdiff_t;
|
||||
using iterator_category = random_access_iterator_tag;
|
||||
using reference = const NzIndexIterator::Reference&;
|
||||
using pointer = const NzIndexIterator::Reference*;
|
||||
using value_type = NzIndexIterator::Reference;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Core/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user