mirror of
https://github.com/boostorg/range.git
synced 2025-07-29 20:37:25 +02:00
Move Boost.Range's join_iterator intrusive_ptr_add_ref and intrusive_ptr_release where ADL will actually find them
[SVN r61867]
This commit is contained in:
@ -71,24 +71,19 @@ private:
|
||||
mutable reference_count_t count;
|
||||
};
|
||||
|
||||
} // range_detail
|
||||
|
||||
template<typename Iterator1, typename Iterator2>
|
||||
inline void intrusive_ptr_add_ref(const range_detail::join_iterator_link<Iterator1,Iterator2>* p)
|
||||
inline void intrusive_ptr_add_ref(const join_iterator_link<Iterator1,Iterator2>* p)
|
||||
{
|
||||
p->add_reference();
|
||||
}
|
||||
|
||||
template<typename Iterator1, typename Iterator2>
|
||||
inline void intrusive_ptr_release(const range_detail::join_iterator_link<Iterator1,Iterator2>* p)
|
||||
inline void intrusive_ptr_release(const join_iterator_link<Iterator1,Iterator2>* p)
|
||||
{
|
||||
if (p->release_reference())
|
||||
delete p;
|
||||
}
|
||||
|
||||
namespace range_detail
|
||||
{
|
||||
|
||||
class join_iterator_begin_tag {};
|
||||
class join_iterator_end_tag {};
|
||||
|
||||
|
Reference in New Issue
Block a user