boost_no_deleted_functions.ipp 758 B

12345678910111213141516171819202122232425262728
  1. // (C) Copyright Beman Dawes 2008
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for more information.
  6. // MACRO: BOOST_NO_CXX11_DELETED_FUNCTIONS
  7. // TITLE: C++0x =delete functions unavailable
  8. // DESCRIPTION: The compiler does not support C++0x =delete functions
  9. #if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X)
  10. # error Deleted functions are not supported in non-C++0x mode
  11. #endif
  12. namespace boost_no_cxx11_deleted_functions {
  13. struct foo {
  14. foo() = delete;
  15. };
  16. int test()
  17. {
  18. return 0;
  19. }
  20. }