Skip to content

Commit 4de9a86

Browse files
committed
xrAICore: Add missing template keyword
1 parent daf0085 commit 4de9a86

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Common/object_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct CLoader
9292
template <typename T1, typename T2>
9393
static void add(T1& data, T2& value)
9494
{
95-
add_helper<T1, T2>::add<is_tree_structure<T1>::value>(data, value);
95+
add_helper<T1, T2>::template add<is_tree_structure<T1>::value>(data, value);
9696
}
9797

9898
template <typename T>

src/xrAICore/Navigation/vertex_manager_hash_fixed_inline.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
CVertexManagerHashFixed<TPathId, TIndex, HashSize, FixSize>::CDataStorage<TPathBuilder, TVertexAllocator, \
1717
TCompoundVertex>
1818

19+
#define CHashFixedVertexManagerT \
20+
typename CVertexManagerHashFixed<TPathId, TIndex, HashSize, FixSize>::template CDataStorage<TPathBuilder, \
21+
TVertexAllocator, TCompoundVertex>
22+
1923
TEMPLATE_SPECIALIZATION
2024
inline CHashFixedVertexManager::CDataStorage(const u32 vertex_count)
2125
: CDataStorageBase(vertex_count), CDataStorageAllocator(), m_current_path_id(PathId(0))
@@ -53,7 +57,7 @@ inline void CHashFixedVertexManager::add_opened(Vertex& vertex) { vertex.opened(
5357
TEMPLATE_SPECIALIZATION
5458
inline void CHashFixedVertexManager::add_closed(Vertex& vertex) { vertex.opened() = 0; }
5559
TEMPLATE_SPECIALIZATION
56-
inline typename CHashFixedVertexManager::PathId CHashFixedVertexManager::current_path_id() const
60+
inline CHashFixedVertexManagerT::PathId CHashFixedVertexManager::current_path_id() const
5761
{
5862
return m_current_path_id;
5963
}
@@ -84,7 +88,7 @@ inline bool CHashFixedVertexManager::is_visited(const Index& vertex_id) const
8488
TEMPLATE_SPECIALIZATION
8589
inline bool CHashFixedVertexManager::is_closed(const Vertex& vertex) const { return !is_opened(vertex); }
8690
TEMPLATE_SPECIALIZATION
87-
inline typename CHashFixedVertexManager::Vertex& CHashFixedVertexManager::get_node(const Index& vertex_id) const
91+
inline CHashFixedVertexManagerT::Vertex& CHashFixedVertexManager::get_node(const Index& vertex_id) const
8892
{
8993
VERIFY(is_visited(vertex_id));
9094
IndexVertex* vertex = m_hash[hash_index(vertex_id)];
@@ -98,7 +102,7 @@ inline typename CHashFixedVertexManager::Vertex& CHashFixedVertexManager::get_no
98102
}
99103

100104
TEMPLATE_SPECIALIZATION
101-
inline typename CHashFixedVertexManager::Vertex& CHashFixedVertexManager::create_vertex(
105+
inline CHashFixedVertexManagerT::Vertex& CHashFixedVertexManager::create_vertex(
102106
Vertex& vertex, const Index& vertex_id)
103107
{
104108
// allocating new index node

0 commit comments

Comments
 (0)