mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-09 23:23:54 +00:00
shared_container_iterator now uses std::shared_ptr to store the reference to the container. boost::shared_ptr is still supported and is wrapped into std::shared_ptr on construction, so there is overhead due to allocation of std::shared_ptr state. Going forward, std::shared_ptr is expected to be the primary use case. As a bonus, this eliminates the dependency on Boost.SmartPtr. Moved shared_container_iterator.hpp into the iterator directory and left a forwarding header for backward compatibility.
33 lines
843 B
Plaintext
33 lines
843 B
Plaintext
# Copyright René Ferdinand Rivera Morell 2023-2024
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
require-b2 5.2 ;
|
|
|
|
constant boost_dependencies :
|
|
/boost/assert//boost_assert
|
|
/boost/concept_check//boost_concept_check
|
|
/boost/config//boost_config
|
|
/boost/core//boost_core
|
|
/boost/detail//boost_detail
|
|
/boost/fusion//boost_fusion
|
|
/boost/mpl//boost_mpl
|
|
/boost/optional//boost_optional
|
|
/boost/type_traits//boost_type_traits
|
|
/boost/utility//boost_utility ;
|
|
|
|
project /boost/iterator
|
|
: common-requirements
|
|
<include>include
|
|
;
|
|
|
|
explicit
|
|
[ alias boost_iterator : : : : <library>$(boost_dependencies) ]
|
|
[ alias all : boost_iterator test ]
|
|
;
|
|
|
|
call-if : boost-library iterator
|
|
;
|
|
|