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:
Marshall Clow
2017-10-23 16:46:44 +00:00
parent 24c7353aa9
commit b91e69c546

View File

@@ -481,7 +481,7 @@ public:
{
#if _LIBCPP_DEBUG_LEVEL >= 2
_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
return pointer_traits<pointer>::pointer_to(__ptr_->__as_node()->__value_);
}