void.hpp 998 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright Daniel Wallin, David Abrahams 2005.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PARAMETER_VOID_050329_HPP
  6. #define BOOST_PARAMETER_VOID_050329_HPP
  7. namespace boost { namespace parameter {
  8. // A placemarker for "no argument passed."
  9. // MAINTAINER NOTE: Do not make this into a metafunction
  10. struct void_
  11. {
  12. };
  13. }} // namespace boost::parameter
  14. namespace boost { namespace parameter { namespace aux {
  15. inline ::boost::parameter::void_& void_reference()
  16. {
  17. static ::boost::parameter::void_ instance;
  18. return instance;
  19. }
  20. }}} // namespace boost::parameter::aux
  21. #include <boost/config/workaround.hpp>
  22. #if BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x580))
  23. namespace boost { namespace parameter { namespace aux {
  24. typedef void* voidstar;
  25. }}} // namespace boost::parameter::aux
  26. #endif
  27. #endif // include guard