function_reference.hpp 767 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright Tobias Schwinger
  2. //
  3. // Use modification and distribution are subject to the boost Software License,
  4. // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
  5. //------------------------------------------------------------------------------
  6. #ifndef BOOST_FT_FUNCTION_REFERENCE_HPP_INCLUDED
  7. #define BOOST_FT_FUNCTION_REFERENCE_HPP_INCLUDED
  8. #include <boost/mpl/aux_/lambda_support.hpp>
  9. #include <boost/function_types/function_type.hpp>
  10. namespace boost
  11. {
  12. namespace function_types
  13. {
  14. template<typename Types, typename Tag = null_tag> struct function_reference
  15. {
  16. typedef typename function_types::function_type<Types,Tag>::type & type;
  17. BOOST_MPL_AUX_LAMBDA_SUPPORT(2,function_reference,(Types,Tag))
  18. };
  19. }
  20. }
  21. #endif