From ca83c03010a8d8b8a84b4bceb3bc4d1e7254d9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 19 Apr 2025 22:21:28 +0200 Subject: [PATCH] Fixes #90 ("Type safety issues of s_iterator_to") --- include/boost/intrusive/list.hpp | 4 ++-- include/boost/intrusive/slist.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/intrusive/list.hpp b/include/boost/intrusive/list.hpp index 507e73c..a1a8a7b 100644 --- a/include/boost/intrusive/list.hpp +++ b/include/boost/intrusive/list.hpp @@ -1260,7 +1260,7 @@ class list_impl } } - //! Requires: value must be a reference to a value inserted in a list. + //! Requires: `value` must be a reference to a value inserted in an instance of this container type. //! //! Effects: This function returns a const_iterator pointing to the element //! @@ -1297,7 +1297,7 @@ class list_impl return const_iterator(value_traits::to_node_ptr(r), const_value_traits_ptr()); } - //! Requires: value must be a reference to a value inserted in a list. + //! Requires: `value` must be a reference to a value inserted in an instance of this container type. //! //! Effects: This function returns a const_iterator pointing to the element //! diff --git a/include/boost/intrusive/slist.hpp b/include/boost/intrusive/slist.hpp index ac42cb4..83659b1 100644 --- a/include/boost/intrusive/slist.hpp +++ b/include/boost/intrusive/slist.hpp @@ -1742,7 +1742,7 @@ class slist_impl } } - //! Requires: value must be a reference to a value inserted in a list. + //! Requires: `value` must be a reference to a value inserted in an instance of this container type. //! //! Effects: This function returns a const_iterator pointing to the element //! @@ -1777,7 +1777,7 @@ class slist_impl return const_iterator(value_traits::to_node_ptr(r), const_value_traits_ptr()); } - //! Requires: value must be a reference to a value inserted in a list. + //! Requires: `value` must be a reference to a value inserted in an instance of this container type. //! //! Effects: This function returns a const_iterator pointing to the element //!