Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/accept_no_visitors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <iostream>
#include <memory>
#include <string>
#include <utility>

#include <boost/openmethod.hpp>
#include <boost/openmethod/interop/std_shared_ptr.hpp>
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/adl_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <string>
#include <type_traits>

#include <boost/openmethod.hpp>
#include <boost/openmethod/initialize.hpp>
Expand Down
2 changes: 2 additions & 0 deletions doc/modules/ROOT/examples/ast_unique_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ struct Times : Node {
};

#include <iostream>
#include <memory>
#include <utility>

BOOST_OPENMETHOD(postfix, (virtual_ptr<const Node> node, std::ostream& os), void);

Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/custom_rtti/1/custom_rtti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct custom_registry : boost::openmethod::registry<
// end::registry[]

#include <iostream>
#include <type_traits>

using boost::openmethod::virtual_ptr;

Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/custom_rtti/2/custom_rtti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ struct custom_registry : boost::openmethod::registry<
// end::registry[]

#include <iostream>
#include <type_traits>

using boost::openmethod::virtual_ptr;

Expand Down
2 changes: 2 additions & 0 deletions doc/modules/ROOT/examples/default_error_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

// tag::example[]
#include <iostream>
#include <stdexcept>
#include <variant>
#include <vector>

#include <boost/openmethod.hpp>
#include <boost/openmethod/initialize.hpp>
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/friendship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// clang-format off

#include <iostream>
#include <memory>
#include <string>
#include <boost/openmethod.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// clang-format off

#include <iostream>
#include <memory>
#include <string>
#include <boost/openmethod.hpp>

Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/headers_namespaces/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <memory>
#include <boost/openmethod.hpp>
#include <boost/openmethod/initialize.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <memory>
#include <boost/openmethod.hpp>
#include <boost/openmethod/initialize.hpp>

Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/hello_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// clang-format off

// tag::domain_classes[]
#include <memory>
#include <string>

struct Animal {
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include <typeinfo>
#include <utility>

#include <boost/openmethod.hpp>
#include <boost/openmethod/policies/static_rtti.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "animals.hpp"

#include <string>

using namespace boost::openmethod;

BOOST_OPENMETHOD_OVERRIDE(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <boost/dll/shared_library.hpp>
#include <iostream>
#include <memory>
#include <string>

using namespace boost::openmethod;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include "animals.hpp"

#include <string>

using namespace boost::openmethod;

BOOST_OPENMETHOD_INSTANTIATE_REGISTRY(boost::openmethod::default_registry);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <boost/openmethod/initialize.hpp>
#include <iostream>
#include <memory>
#include <string>

using namespace boost::openmethod::aliases;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "animals.hpp"

#include <string>

using namespace boost::openmethod;

BOOST_OPENMETHOD_OVERRIDE(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <boost/openmethod/interop/std_unique_ptr.hpp>
#include <boost/dll/shared_library.hpp>
#include <iostream>
#include <string>

using namespace boost::openmethod::aliases;

Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/slides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <iostream>
#include <string>
#include <typeindex>
#include <typeinfo>
#include <unordered_map>
#include <utility>

Expand Down
2 changes: 2 additions & 0 deletions doc/modules/ROOT/examples/snippets/errors_missing_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "error_harness.hpp"

#include <string>

using namespace boost::openmethod;

struct Animal {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include "error_harness.hpp"

#include <string>

using namespace boost::openmethod;

struct Animal {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "error_harness.hpp"

#include <string>

using namespace boost::openmethod;

struct Animal {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "error_harness.hpp"

#include <string>

using namespace boost::openmethod;

struct Animal {
Expand Down
2 changes: 2 additions & 0 deletions doc/modules/ROOT/examples/snippets/initialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "capture.hpp"

#include <string>

namespace bom = boost::openmethod;

struct Animal {
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/snippets/inplace_vptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <boost/openmethod/initialize.hpp>

#include <memory>
#include <string>

#define BOOST_TEST_MODULE openmethod
#include <boost/test/unit_test.hpp>
Expand Down
2 changes: 2 additions & 0 deletions doc/modules/ROOT/examples/snippets/intrusive_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include "capture.hpp"

#include <string>

using namespace boost::openmethod;

// tag::classes[]
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/snippets/policies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <boost/openmethod/policies/vptr_map.hpp>

#include <stdexcept>
#include <string>
#include <variant>

#define BOOST_TEST_MODULE openmethod
Expand Down
4 changes: 4 additions & 0 deletions doc/modules/ROOT/examples/snippets/smart_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

#include "capture.hpp"

#include <memory>
#include <string>
#include <utility>

using namespace boost::openmethod;

// tag::classes[]
Expand Down
2 changes: 2 additions & 0 deletions doc/modules/ROOT/examples/snippets/static_rtti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ struct static_registry :

#include "capture.hpp"

#include <string>

using namespace boost::openmethod::aliases;

// tag::classes[]
Expand Down
5 changes: 5 additions & 0 deletions doc/modules/ROOT/examples/snippets/virtual_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

#include "capture.hpp"

#include <memory>
#include <string>
#include <type_traits>
#include <utility>

using namespace boost::openmethod;

namespace polymorphic_classes {
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/throw_error_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct custom_registry;
#include <boost/openmethod/initialize.hpp>

#include <iostream>
#include <vector>

struct Animal {
virtual ~Animal() = default;
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/virtual_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <iostream>
#include <memory>
#include <string>

struct Animal {
Animal(std::string name) : name(name) {}
Expand Down
1 change: 1 addition & 0 deletions doc/modules/ROOT/examples/virtual_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <iostream>
#include <memory>
#include <boost/openmethod.hpp>
#include <boost/openmethod/initialize.hpp>

Expand Down
3 changes: 1 addition & 2 deletions include/boost/openmethod/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
#define BOOST_OPENMETHOD_CORE_HPP

#include <stdint.h>
#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <tuple>
#include <type_traits>
#include <utility>

Expand Down
3 changes: 2 additions & 1 deletion include/boost/openmethod/detail/ostdstream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
#define BOOST_OPENMETHOD_DETAIL_OSTDSTREAM_HPP

#include <array>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <charconv>
#include <random>
#include <string_view>

namespace boost::openmethod {
Expand Down
4 changes: 3 additions & 1 deletion include/boost/openmethod/detail/static_list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
#ifndef BOOST_OPENMETHOD_DETAIL_STATIC_LIST_HPP
#define BOOST_OPENMETHOD_DETAIL_STATIC_LIST_HPP

#include <algorithm>
#include <boost/assert.hpp>

#include <cstddef>
#include <iterator>

namespace boost::openmethod {

namespace detail {
Expand Down
9 changes: 7 additions & 2 deletions include/boost/openmethod/initialize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@
#include <boost/openmethod/detail/ostdstream.hpp>

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <deque>
#include <iterator>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

#include <boost/assert.hpp>
#include <boost/dynamic_bitset.hpp>
#include <boost/mp11/algorithm.hpp>
#include <boost/mp11/integral.hpp>
#include <boost/mp11/list.hpp>

#ifdef _MSC_VER
#pragma warning(push)
Expand Down
4 changes: 4 additions & 0 deletions include/boost/openmethod/inplace_vptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

#include <boost/openmethod/core.hpp>

#include <boost/mp11/list.hpp>

#include <type_traits>

// =============================================================================
// inplace_vptr

Expand Down
3 changes: 3 additions & 0 deletions include/boost/openmethod/interop/boost_any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#include <boost/openmethod/interop/virtual_any.hpp>
#include <boost/openmethod/policies/std_rtti.hpp>

#include <type_traits>
#include <utility>

// Dispatch on the type contained in a `boost::any`.
//
// This interop is based on a design contributed by Steven Watanabe:
Expand Down
4 changes: 3 additions & 1 deletion include/boost/openmethod/interop/boost_intrusive_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

#include <boost/openmethod/core.hpp>
#include <boost/smart_ptr/intrusive_ptr.hpp>
#include <memory>

#include <type_traits>
#include <utility>

namespace boost::openmethod {

Expand Down
2 changes: 2 additions & 0 deletions include/boost/openmethod/interop/std_any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#define BOOST_OPENMETHOD_INTEROP_STD_ANY_HPP

#include <any>
#include <type_traits>
#include <utility>
#include <boost/openmethod/core.hpp>
#include <boost/openmethod/interop/virtual_any.hpp>
#include <boost/openmethod/policies/std_rtti.hpp>
Expand Down
2 changes: 2 additions & 0 deletions include/boost/openmethod/interop/std_shared_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include <boost/openmethod/core.hpp>
#include <memory>
#include <type_traits>
#include <utility>

namespace boost::openmethod {
namespace detail {
Expand Down
Loading
Loading