Browse Source

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
Marshall Clow 7 years ago
parent
commit
b91e69c546
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/list

+ 1 - 1
include/list

@@ -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_);
     }
     }