config/test/boost_no_cxx11_defaulted_moves.ipp
2018-01-11 21:22:59 +01:00

26 lines
694 B
C++

// (C) Copyright Andrzej Krzemienski 2018
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for more information.
// MACRO: BOOST_NO_CXX11_DEFAULTED_MOVES
// TITLE: C++0x defaulting of move constructor/assignment unavailable
// DESCRIPTION: The compiler does not support C++0x defaulting of move constructor/assignment
namespace boost_no_cxx11_defaulted_moves {
struct foo {
foo(foo&&) = default;
foo& operator=(foo&&) = default;
};
int test()
{
return 0;
}
}