typeof.hpp 746 B

12345678910111213141516171819202122
  1. // Copyright (C) 2009-2012 Lorenzo Caminiti
  2. // Distributed under the Boost Software License, Version 1.0
  3. // (see accompanying file LICENSE_1_0.txt or a copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // Home at http://www.boost.org/libs/local_function
  6. #ifndef BOOST_LOCAL_FUNCTION_AUX_TYPEOF_HPP_
  7. #define BOOST_LOCAL_FUNCTION_AUX_TYPEOF_HPP_
  8. #include <boost/local_function/aux_/symbol.hpp>
  9. // PUBLIC //
  10. // Actual type-name for specified symbol name.
  11. #define BOOST_LOCAL_FUNCTION_AUX_TYPEOF_TYPE(name) \
  12. /* cannot prefix in front of name because it could start with non */ \
  13. /* alphanumeric symbols (e.g., & for binding by reference) */ \
  14. BOOST_LOCAL_FUNCTION_AUX_SYMBOL_POSTFIX( (name)(typeof_type) )
  15. #endif // #include guard