mirror of
https://github.com/boostorg/function.git
synced 2025-07-29 12:27:15 +02:00
Add include guards, move prologue/epilogue into function_template, remove unnecessary headers
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
#ifndef BOOST_FUNCTION_HPP_INCLUDED
|
||||
#define BOOST_FUNCTION_HPP_INCLUDED
|
||||
|
||||
// Boost.Function library
|
||||
|
||||
// Copyright Douglas Gregor 2001-2003. Use, modification and
|
||||
@ -10,18 +13,6 @@
|
||||
// William Kempf, Jesse Jones and Karl Nelson were all very helpful in the
|
||||
// design of this library.
|
||||
|
||||
#ifndef BOOST_FUNCTION_MAX_ARGS
|
||||
# define BOOST_FUNCTION_MAX_ARGS 10
|
||||
#endif // BOOST_FUNCTION_MAX_ARGS
|
||||
#include <boost/function/function_template.hpp>
|
||||
|
||||
#if !defined(BOOST_FUNCTION_MAX_ARGS_DEFINED) || (BOOST_FUNCTION_MAX_ARGS_DEFINED != BOOST_FUNCTION_MAX_ARGS)
|
||||
|
||||
#if !defined(BOOST_FUNCTION_MAX_ARGS_DEFINED)
|
||||
#define BOOST_FUNCTION_MAX_ARGS_DEFINED 0
|
||||
#endif
|
||||
|
||||
#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)
|
||||
#endif // #ifndef BOOST_FUNCTION_HPP_INCLUDED
|
||||
|
Reference in New Issue
Block a user