dont_care.hpp 850 B

12345678910111213141516171819202122232425262728293031323334
  1. ///////////////////////////////////////////////////////////////////////////////
  2. /// \file dont_care.hpp
  3. /// Definintion of dont_care, a dummy parameter
  4. //
  5. // Copyright 2008 Eric Niebler. Distributed under the Boost
  6. // Software License, Version 1.0. (See accompanying file
  7. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef BOOST_PROTO_DETAIL_DONT_CARE_HPP_EAN_11_07_2007
  9. #define BOOST_PROTO_DETAIL_DONT_CARE_HPP_EAN_11_07_2007
  10. #include <boost/config.hpp>
  11. #if defined(_MSC_VER)
  12. # pragma warning(push)
  13. # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined
  14. #endif
  15. namespace boost { namespace proto
  16. {
  17. namespace detail
  18. {
  19. struct dont_care
  20. {
  21. BOOST_FORCEINLINE dont_care(...);
  22. };
  23. }
  24. }}
  25. #if defined(_MSC_VER)
  26. # pragma warning(pop)
  27. #endif
  28. #endif