Fix misguided error message in debug mode. No functional change. Fixes PR#34966
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@316343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -481,7 +481,7 @@ public:
|
|||||||
{
|
{
|
||||||
#if _LIBCPP_DEBUG_LEVEL >= 2
|
#if _LIBCPP_DEBUG_LEVEL >= 2
|
||||||
_LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
|
_LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
|
||||||
"Attempted to dereference a non-dereferenceable list::iterator");
|
"Attempted to dereference a non-dereferenceable list::const_iterator");
|
||||||
#endif
|
#endif
|
||||||
return pointer_traits<pointer>::pointer_to(__ptr_->__as_node()->__value_);
|
return pointer_traits<pointer>::pointer_to(__ptr_->__as_node()->__value_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user