mirror of
https://github.com/boostorg/iterator.git
synced 2025-06-25 03:51:33 +02: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.
28 lines
770 B
CMake
28 lines
770 B
CMake
# Copyright 2018 Peter Dimov
|
|
# Copyright 2018 Andrey Semashev
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
cmake_minimum_required(VERSION 3.5...3.20)
|
|
|
|
project(boost_iterator VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
|
|
|
add_library(boost_iterator INTERFACE)
|
|
add_library(Boost::iterator ALIAS boost_iterator)
|
|
|
|
target_include_directories(boost_iterator INTERFACE include)
|
|
|
|
target_link_libraries(boost_iterator
|
|
INTERFACE
|
|
Boost::assert
|
|
Boost::concept_check
|
|
Boost::config
|
|
Boost::core
|
|
Boost::detail
|
|
Boost::fusion
|
|
Boost::mpl
|
|
Boost::optional
|
|
Boost::type_traits
|
|
Boost::utility
|
|
)
|