overload.hpp 1.1 KB

12345678910111213141516171819202122232425
  1. # /* **************************************************************************
  2. # * *
  3. # * (C) Copyright Paul Mensonides 2011. *
  4. # * (C) Copyright Edward Diener 2011. *
  5. # * Distributed under the Boost Software License, Version 1.0. (See *
  6. # * accompanying file LICENSE_1_0.txt or copy at *
  7. # * http://www.boost.org/LICENSE_1_0.txt) *
  8. # * *
  9. # ************************************************************************** */
  10. #
  11. # /* See http://www.boost.org for most recent version. */
  12. #
  13. # ifndef BOOST_PREPROCESSOR_FACILITIES_OVERLOAD_HPP
  14. # define BOOST_PREPROCESSOR_FACILITIES_OVERLOAD_HPP
  15. #
  16. # include <boost/preprocessor/cat.hpp>
  17. # include <boost/preprocessor/variadic/size.hpp>
  18. #
  19. # /* BOOST_PP_OVERLOAD */
  20. #
  21. # if BOOST_PP_VARIADICS
  22. # define BOOST_PP_OVERLOAD(prefix, ...) BOOST_PP_CAT(prefix, BOOST_PP_VARIADIC_SIZE(__VA_ARGS__))
  23. # endif
  24. #
  25. # endif