Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add include checks for several Boost utilities #2094

Merged
merged 4 commits into from Apr 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/async_io/async_io_action.cpp
Expand Up @@ -15,6 +15,9 @@
#include <hpx/include/runtime.hpp>
#include <hpx/include/thread_executors.hpp>

#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>

#include <string>
#include <vector>

Expand Down
3 changes: 3 additions & 0 deletions examples/async_io/async_io_external.cpp
Expand Up @@ -11,6 +11,9 @@
#include <hpx/include/runtime.hpp>
#include <hpx/include/iostreams.hpp>

#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>

///////////////////////////////////////////////////////////////////////////////
struct registration_wrapper
{
Expand Down
3 changes: 3 additions & 0 deletions examples/async_io/async_io_low_level.cpp
Expand Up @@ -13,6 +13,9 @@
#include <hpx/include/util.hpp>
#include <hpx/util/io_service_pool.hpp>

#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>

// this function will be executed by a dedicated OS thread
void do_async_io(char const* string_to_write,
boost::shared_ptr<hpx::lcos::local::promise<int> > p)
Expand Down
2 changes: 1 addition & 1 deletion examples/jacobi/jacobi_component/row_range.hpp
Expand Up @@ -7,7 +7,7 @@
#ifndef JACOBI_ROW_RANGE_HPP
#define JACOBI_ROW_RANGE_HPP

#include <boost/smart_ptr/intrusive_ptr.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/detail/atomic_count.hpp>
#include <boost/range/iterator.hpp>
#include <boost/range/mutable_iterator.hpp>
Expand Down
1 change: 1 addition & 0 deletions examples/jacobi/jacobi_component/server/row.hpp
Expand Up @@ -11,6 +11,7 @@

#include <hpx/include/components.hpp>

#include <boost/intrusive_ptr.hpp>
#include <boost/smart_ptr/shared_array.hpp>

namespace jacobi {
Expand Down
2 changes: 2 additions & 0 deletions examples/jacobi_smp/jacobi_hpx.cpp
Expand Up @@ -11,6 +11,8 @@
#include <hpx/dataflow.hpp>
#include <hpx/util/high_resolution_timer.hpp>

#include <boost/shared_ptr.hpp>

#include <string>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions examples/jacobi_smp/jacobi_nonuniform_hpx.cpp
Expand Up @@ -10,6 +10,8 @@
#include <hpx/include/lcos.hpp>
#include <hpx/util/high_resolution_timer.hpp>

#include <boost/shared_ptr.hpp>

#include <vector>

namespace jacobi_smp {
Expand Down
2 changes: 2 additions & 0 deletions examples/quickstart/composable_guard.cpp
Expand Up @@ -4,6 +4,8 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/lcos/local/composable_guard.hpp>
#include <hpx/hpx_init.hpp>
#include <boost/atomic.hpp>
#include <boost/shared_ptr.hpp>
#include <iostream>

// This program illustrates the use of composable guards to perform
Expand Down
8 changes: 5 additions & 3 deletions examples/quickstart/fibonacci_await.cpp
Expand Up @@ -13,11 +13,13 @@
#include <hpx/include/util.hpp>
#include <hpx/include/lcos.hpp>

#include <iostream>
#include <string>

#include <boost/cstdint.hpp>
#include <boost/format.hpp>
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>

#include <iostream>
#include <string>

///////////////////////////////////////////////////////////////////////////////
boost::uint64_t threshold = 2;
Expand Down
1 change: 1 addition & 0 deletions examples/quickstart/fibonacci_futures_distributed.cpp
Expand Up @@ -13,6 +13,7 @@
#include <string>
#include <vector>

#include <boost/atomic.hpp>
#include <boost/cstdint.hpp>
#include <boost/format.hpp>

Expand Down
2 changes: 2 additions & 0 deletions examples/quickstart/fractals_struct.cpp
Expand Up @@ -13,6 +13,8 @@
#include <hpx/include/lcos.hpp>
#include <hpx/include/serialization.hpp>

#include <boost/shared_ptr.hpp>

#include <vector>

const std::size_t sizeY = 256;
Expand Down
3 changes: 3 additions & 0 deletions examples/quickstart/pingpong.cpp
Expand Up @@ -11,6 +11,9 @@
#include <hpx/include/iostreams.hpp>
#include <hpx/include/serialization.hpp>

#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>

#include <vector>

///////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion examples/sheneos/sheneos/interpolator.cpp
Expand Up @@ -14,7 +14,7 @@
#include <hpx/util/assert.hpp>

#include <boost/make_shared.hpp>
#include <boost/move/move.hpp>
#include <boost/shared_ptr.hpp>

#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions examples/transpose/transpose_await.cpp
Expand Up @@ -10,6 +10,7 @@
#include <hpx/include/parallel_numeric.hpp>

#include <boost/range/irange.hpp>
#include <boost/shared_ptr.hpp>

#include <algorithm>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions examples/transpose/transpose_block.cpp
Expand Up @@ -10,6 +10,7 @@
#include <hpx/include/parallel_numeric.hpp>

#include <boost/range/irange.hpp>
#include <boost/shared_ptr.hpp>

#include <algorithm>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions examples/transpose/transpose_block_numa.cpp
Expand Up @@ -13,6 +13,7 @@
#include <hpx/parallel/util/numa_allocator.hpp>

#include <boost/range/irange.hpp>
#include <boost/shared_ptr.hpp>

#include <algorithm>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion external/asio/boost/asio/ip/basic_resolver_iterator.hpp
Expand Up @@ -198,7 +198,7 @@ class basic_resolver_iterator

std::size_t index_;
typedef std::vector<basic_resolver_entry<InternetProtocol> > values_type;
boost::shared_ptr<values_type> values_;
detail::shared_ptr<values_type> values_;
};

} // namespace ip
Expand Down
Expand Up @@ -19,6 +19,8 @@
#include <hpx/components/component_storage/export_definitions.hpp>
#include <hpx/components/component_storage/server/component_storage.hpp>

#include <boost/shared_ptr.hpp>

#include <vector>

namespace hpx { namespace components { namespace server
Expand Down
Expand Up @@ -17,6 +17,8 @@
#include <hpx/components/component_storage/export_definitions.hpp>
#include <hpx/components/component_storage/server/component_storage.hpp>

#include <boost/shared_ptr.hpp>

#include <vector>

namespace hpx { namespace components { namespace server
Expand Down
Expand Up @@ -20,6 +20,9 @@
#include <hpx/components/containers/partitioned_vector/partitioned_vector_segmented_iterator.hpp>
#include <hpx/components/containers/partitioned_vector/partitioned_vector_component.hpp>

#include <boost/cstdint.hpp>
#include <boost/shared_ptr.hpp>

#include <algorithm>
#include <cstdint>
#include <iterator>
Expand All @@ -28,8 +31,6 @@
#include <type_traits>
#include <vector>

#include <boost/cstdint.hpp>

///////////////////////////////////////////////////////////////////////////////
/// \cond NOINTERNAL
namespace hpx { namespace server
Expand Down
Expand Up @@ -22,6 +22,7 @@
#include <hpx/include/util.hpp>

#include <boost/preprocessor/cat.hpp>
#include <boost/shared_ptr.hpp>

#include <iostream>
#include <string>
Expand Down
Expand Up @@ -20,17 +20,18 @@

#include <hpx/components/containers/partitioned_vector/partitioned_vector_component.hpp>

#include <boost/integer.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/filter_iterator.hpp>
#include <boost/shared_ptr.hpp>

#include <cstdint>
#include <iterator>
#include <limits>
#include <type_traits>
#include <vector>

#include <boost/integer.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/filter_iterator.hpp>

namespace hpx
{
///////////////////////////////////////////////////////////////////////////
Expand Down
Expand Up @@ -24,6 +24,7 @@
#include <hpx/include/actions.hpp>

#include <boost/preprocessor/cat.hpp>
#include <boost/shared_ptr.hpp>

#include <iostream>
#include <string>
Expand Down
5 changes: 3 additions & 2 deletions hpx/components/containers/unordered/unordered_map.hpp
Expand Up @@ -19,14 +19,15 @@
#include <hpx/components/containers/unordered/partition_unordered_map_component.hpp>
#include <hpx/components/containers/unordered/unordered_map_segmented_iterator.hpp>

#include <boost/cstdint.hpp>
#include <boost/shared_ptr.hpp>

#include <cstdint>
#include <memory>
#include <string>
#include <type_traits>
#include <vector>

#include <boost/cstdint.hpp>

/// The hpx::unordered_map and its API's are defined here.
///
/// The hpx::unordered_map is a segmented data structure which is a collection
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/barrier.hpp
Expand Up @@ -10,6 +10,8 @@
#include <hpx/include/client.hpp>
#include <hpx/lcos/stubs/barrier.hpp>

#include <boost/exception_ptr.hpp>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace lcos
{
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/base_lco.hpp
Expand Up @@ -13,6 +13,8 @@
#include <hpx/runtime/actions/component_action.hpp>
#include <hpx/util/ini.hpp>

#include <boost/exception_ptr.hpp>

namespace hpx { namespace lcos
{
/// The \a base_lco class is the common base class for all LCO's
Expand Down
1 change: 1 addition & 0 deletions hpx/lcos/future.hpp
Expand Up @@ -31,6 +31,7 @@
#include <hpx/runtime/actions/continuation.hpp>
#include <hpx/runtime/launch_policy.hpp>

#include <boost/exception_ptr.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/if.hpp>
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/latch.hpp
Expand Up @@ -11,6 +11,8 @@
#include <hpx/runtime/components/new.hpp>
#include <hpx/lcos/server/latch.hpp>

#include <boost/exception_ptr.hpp>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace lcos
{
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/packaged_action.hpp
Expand Up @@ -19,6 +19,8 @@
#include <hpx/traits/component_supports_migration.hpp>
#include <hpx/traits/action_was_object_migrated.hpp>

#include <boost/exception_ptr.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/type_traits/is_same.hpp>
Expand Down
3 changes: 2 additions & 1 deletion hpx/lcos/promise.hpp
Expand Up @@ -26,9 +26,10 @@
#include <hpx/util/one_size_heap_list_base.hpp>
#include <hpx/util/static_reinit.hpp>

#include <boost/exception_ptr.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/exception_ptr.hpp>
#include <boost/shared_ptr.hpp>

#include <mutex>

Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/queue.hpp
Expand Up @@ -10,6 +10,8 @@
#include <hpx/include/client.hpp>
#include <hpx/lcos/server/queue.hpp>

#include <boost/exception_ptr.hpp>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace lcos
{
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/server/barrier.hpp
Expand Up @@ -16,6 +16,8 @@
#include <hpx/runtime/components/server/managed_component_base.hpp>
#include <hpx/runtime/components/server/runtime_support.hpp>

#include <boost/exception_ptr.hpp>

#include <mutex>

///////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/server/latch.hpp
Expand Up @@ -15,6 +15,8 @@
#include <hpx/runtime/components/server/managed_component_base.hpp>
#include <hpx/runtime/components/server/runtime_support.hpp>

#include <boost/exception_ptr.hpp>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace lcos { namespace server
{
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/server/queue.hpp
Expand Up @@ -17,6 +17,8 @@
#include <hpx/lcos/base_lco.hpp>
#include <hpx/traits/get_remote_result.hpp>

#include <boost/exception_ptr.hpp>

#include <memory>
#include <mutex>
#include <queue>
Expand Down
2 changes: 2 additions & 0 deletions hpx/lcos/stubs/barrier.hpp
Expand Up @@ -11,6 +11,8 @@
#include <hpx/lcos/base_lco.hpp>
#include <hpx/lcos/server/barrier.hpp>

#include <boost/exception_ptr.hpp>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace lcos { namespace stubs
{
Expand Down
2 changes: 2 additions & 0 deletions hpx/parallel/algorithms/sort.hpp
Expand Up @@ -28,6 +28,8 @@
#include <hpx/parallel/util/projection_identity.hpp>
#include <hpx/parallel/traits/projected.hpp>

#include <boost/exception_ptr.hpp>

#include <algorithm>
#include <iterator>
#include <type_traits>
Expand Down
2 changes: 2 additions & 0 deletions hpx/parallel/segmented_algorithms/copy.hpp
Expand Up @@ -17,6 +17,8 @@
#include <hpx/parallel/util/detail/algorithm_result.hpp>
#include <hpx/parallel/util/detail/handle_remote_exceptions.hpp>

#include <boost/exception_ptr.hpp>

#include <algorithm>
#include <iterator>
#include <list>
Expand Down
2 changes: 2 additions & 0 deletions hpx/parallel/segmented_algorithms/count.hpp
Expand Up @@ -17,6 +17,8 @@
#include <hpx/parallel/util/detail/algorithm_result.hpp>
#include <hpx/parallel/util/detail/handle_remote_exceptions.hpp>

#include <boost/exception_ptr.hpp>

#include <algorithm>
#include <iterator>
#include <list>
Expand Down
2 changes: 2 additions & 0 deletions hpx/parallel/segmented_algorithms/detail/dispatch.hpp
Expand Up @@ -18,6 +18,8 @@
#include <hpx/parallel/util/detail/algorithm_result.hpp>
#include <hpx/parallel/util/detail/handle_remote_exceptions.hpp>

#include <boost/exception_ptr.hpp>

#include <type_traits>

namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1) { namespace detail
Expand Down