boost_no_cxx11_defaulted_moves.ipp 694 B

12345678910111213141516171819202122232425
  1. // (C) Copyright Andrzej Krzemienski 2018
  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_DEFAULTED_MOVES
  7. // TITLE: C++0x defaulting of move constructor/assignment unavailable
  8. // DESCRIPTION: The compiler does not support C++0x defaulting of move constructor/assignment
  9. namespace boost_no_cxx11_defaulted_moves {
  10. struct foo {
  11. foo(foo&&) = default;
  12. foo& operator=(foo&&) = default;
  13. };
  14. int test()
  15. {
  16. return 0;
  17. }
  18. }