Skip to content

Commit ca83c03

Browse files
committed
Fixes #90 ("Type safety issues of s_iterator_to")
1 parent e3d0483 commit ca83c03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/boost/intrusive/list.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ class list_impl
12601260
}
12611261
}
12621262

1263-
//! <b>Requires</b>: value must be a reference to a value inserted in a list.
1263+
//! <b>Requires</b>: `value` must be a reference to a value inserted in an instance of this container type.
12641264
//!
12651265
//! <b>Effects</b>: This function returns a const_iterator pointing to the element
12661266
//!
@@ -1297,7 +1297,7 @@ class list_impl
12971297
return const_iterator(value_traits::to_node_ptr(r), const_value_traits_ptr());
12981298
}
12991299

1300-
//! <b>Requires</b>: value must be a reference to a value inserted in a list.
1300+
//! <b>Requires</b>: `value` must be a reference to a value inserted in an instance of this container type.
13011301
//!
13021302
//! <b>Effects</b>: This function returns a const_iterator pointing to the element
13031303
//!

include/boost/intrusive/slist.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ class slist_impl
17421742
}
17431743
}
17441744

1745-
//! <b>Requires</b>: value must be a reference to a value inserted in a list.
1745+
//! <b>Requires</b>: `value` must be a reference to a value inserted in an instance of this container type.
17461746
//!
17471747
//! <b>Effects</b>: This function returns a const_iterator pointing to the element
17481748
//!
@@ -1777,7 +1777,7 @@ class slist_impl
17771777
return const_iterator(value_traits::to_node_ptr(r), const_value_traits_ptr());
17781778
}
17791779

1780-
//! <b>Requires</b>: value must be a reference to a value inserted in a list.
1780+
//! <b>Requires</b>: `value` must be a reference to a value inserted in an instance of this container type.
17811781
//!
17821782
//! <b>Effects</b>: This function returns a const_iterator pointing to the element
17831783
//!

0 commit comments

Comments
 (0)