Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/vptr/virtual_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class PointerMapper {
auto node = m_pointerMap.lower_bound(ptr);
// If the value of the pointer is not the one of the node
// then we return the previous one
if (node->first != ptr) {
if (node == m_pointerMap.end() || node->first != ptr) {
if (node == std::begin(m_pointerMap)) {
throw std::out_of_range("The pointer is not registered in the map");
}
Expand Down