Skip to content

Commit

Permalink
xrAICore: Add missing template keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Sep 16, 2018
1 parent daf0085 commit 4de9a86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Common/object_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ struct CLoader
template <typename T1, typename T2>
static void add(T1& data, T2& value)
{
add_helper<T1, T2>::add<is_tree_structure<T1>::value>(data, value);
add_helper<T1, T2>::template add<is_tree_structure<T1>::value>(data, value);
}

template <typename T>
Expand Down
10 changes: 7 additions & 3 deletions src/xrAICore/Navigation/vertex_manager_hash_fixed_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
CVertexManagerHashFixed<TPathId, TIndex, HashSize, FixSize>::CDataStorage<TPathBuilder, TVertexAllocator, \
TCompoundVertex>

#define CHashFixedVertexManagerT \
typename CVertexManagerHashFixed<TPathId, TIndex, HashSize, FixSize>::template CDataStorage<TPathBuilder, \
TVertexAllocator, TCompoundVertex>

TEMPLATE_SPECIALIZATION
inline CHashFixedVertexManager::CDataStorage(const u32 vertex_count)
: CDataStorageBase(vertex_count), CDataStorageAllocator(), m_current_path_id(PathId(0))
Expand Down Expand Up @@ -53,7 +57,7 @@ inline void CHashFixedVertexManager::add_opened(Vertex& vertex) { vertex.opened(
TEMPLATE_SPECIALIZATION
inline void CHashFixedVertexManager::add_closed(Vertex& vertex) { vertex.opened() = 0; }
TEMPLATE_SPECIALIZATION
inline typename CHashFixedVertexManager::PathId CHashFixedVertexManager::current_path_id() const
inline CHashFixedVertexManagerT::PathId CHashFixedVertexManager::current_path_id() const
{
return m_current_path_id;
}
Expand Down Expand Up @@ -84,7 +88,7 @@ inline bool CHashFixedVertexManager::is_visited(const Index& vertex_id) const
TEMPLATE_SPECIALIZATION
inline bool CHashFixedVertexManager::is_closed(const Vertex& vertex) const { return !is_opened(vertex); }
TEMPLATE_SPECIALIZATION
inline typename CHashFixedVertexManager::Vertex& CHashFixedVertexManager::get_node(const Index& vertex_id) const
inline CHashFixedVertexManagerT::Vertex& CHashFixedVertexManager::get_node(const Index& vertex_id) const
{
VERIFY(is_visited(vertex_id));
IndexVertex* vertex = m_hash[hash_index(vertex_id)];
Expand All @@ -98,7 +102,7 @@ inline typename CHashFixedVertexManager::Vertex& CHashFixedVertexManager::get_no
}

TEMPLATE_SPECIALIZATION
inline typename CHashFixedVertexManager::Vertex& CHashFixedVertexManager::create_vertex(
inline CHashFixedVertexManagerT::Vertex& CHashFixedVertexManager::create_vertex(
Vertex& vertex, const Index& vertex_id)
{
// allocating new index node
Expand Down

0 comments on commit 4de9a86

Please sign in to comment.