Skip to content

Commit

Permalink
Remove unnecessary includes
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 25, 2024
1 parent 86b7a78 commit c423753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
9 changes: 0 additions & 9 deletions include/boost/function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,8 @@
#define BOOST_FUNCTION_MAX_ARGS_DEFINED 0
#endif

#include <functional> // unary_function, binary_function

#include <boost/preprocessor/iterate.hpp>
#include <boost/config/workaround.hpp>

// Include the prologue here so that the use of file-level iteration
// in anything that may be included by function_template.hpp doesn't break
#include <boost/function/detail/prologue.hpp>

#include <boost/function/detail/maybe_include.hpp>

#include <boost/function/detail/epilogue.hpp>

#endif // !defined(BOOST_FUNCTION_MAX_ARGS_DEFINED) || (BOOST_FUNCTION_MAX_ARGS_DEFINED != BOOST_FUNCTION_MAX_ARGS)
14 changes: 4 additions & 10 deletions include/boost/function/detail/prologue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@
#ifndef BOOST_FUNCTION_PROLOGUE_HPP
#define BOOST_FUNCTION_PROLOGUE_HPP
# include <boost/function/detail/requires_cxx11.hpp>
# include <cassert>
# include <algorithm>
# include <boost/config/no_tr1/functional.hpp> // unary_function, binary_function
# include <boost/throw_exception.hpp>
# include <boost/config.hpp>
# include <boost/function/function_base.hpp>
# include <boost/mem_fn.hpp>
# include <boost/throw_exception.hpp>
# include <boost/type_traits/is_integral.hpp>
# include <boost/preprocessor/enum.hpp>
# include <boost/preprocessor/enum_params.hpp>
# include <boost/preprocessor/cat.hpp>
# include <boost/preprocessor/repeat.hpp>
# include <boost/preprocessor/inc.hpp>
# include <boost/type_traits/is_void.hpp>
# include <boost/config.hpp>
# include <algorithm>
# include <cassert>
#endif // BOOST_FUNCTION_PROLOGUE_HPP

0 comments on commit c423753

Please sign in to comment.