nonesuch.hpp 702 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. Copyright 2017 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License,
  5. Version 1.0. (See accompanying file LICENSE_1_0.txt
  6. or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_TT_NONESUCH_HPP_INCLUDED
  9. #define BOOST_TT_NONESUCH_HPP_INCLUDED
  10. #include <boost/config.hpp>
  11. namespace boost {
  12. #if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
  13. struct nonesuch {
  14. nonesuch() = delete;
  15. ~nonesuch() = delete;
  16. nonesuch(const nonesuch&) = delete;
  17. void operator=(const nonesuch&) = delete;
  18. };
  19. #else
  20. class nonesuch {
  21. nonesuch();
  22. ~nonesuch();
  23. nonesuch(const nonesuch&);
  24. void operator=(const nonesuch&);
  25. };
  26. #endif
  27. } /* boost */
  28. #endif