Skip to content

Commit c6d21c3

Browse files
committed
Fix compilation issue for LruCache::operator--
Struct LruCache::Bucket doesn't have a member called m_previous. Relates-To: NLAM-182 Signed-off-by: Mykola Malik <[email protected]>
1 parent 8d13756 commit c6d21c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

olp-cpp-sdk-core/include/olp/core/utils/LruCache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2021 HERE Europe B.V.
2+
* Copyright (C) 2019-2025 HERE Europe B.V.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -748,7 +748,7 @@ inline typename LruCache<Key, Value, CacheCostFunc, Compare,
748748
Alloc>::const_iterator&
749749
LruCache<Key, Value, CacheCostFunc, Compare, Alloc>::const_iterator::
750750
operator--() {
751-
this->m_it = this->m_it->second.m_previous;
751+
this->m_it = this->m_it->second.previous_;
752752
return *this;
753753
}
754754

@@ -759,7 +759,7 @@ inline
759759
LruCache<Key, Value, CacheCostFunc, Compare, Alloc>::const_iterator::
760760
operator--(int) {
761761
typename MapType::const_iterator old_value = this->m_it;
762-
this->m_it = this->m_it->second.m_previous;
762+
this->m_it = this->m_it->second.previous_;
763763
return const_iterator{old_value};
764764
}
765765

0 commit comments

Comments
 (0)