forked from boostorg/config
Merge pull request #205 from akrzemi1/develop
Added macro BOOST_NO_CXX11_DEFAULTED_MOVES
This commit is contained in:
+4
-1
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Regression test Jamfile for boost configuration setup.
|
||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||
# This file was automatically generated on Sun Jul 9 16:30:35 2017
|
||||
# This file was automatically generated on Wed Jan 03 23:31:31 2018
|
||||
# by libs/config/tools/generate.cpp
|
||||
# Copyright John Maddock.
|
||||
# Use, modification and distribution are subject to the
|
||||
@@ -190,6 +190,9 @@ test-suite "BOOST_NO_CXX11_ALLOCATOR" :
|
||||
test-suite "BOOST_NO_CXX11_ATOMIC_SMART_PTR" :
|
||||
[ run ../no_cxx11_atomic_sp_pass.cpp ]
|
||||
[ compile-fail ../no_cxx11_atomic_sp_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_CXX11_DEFAULTED_MOVES" :
|
||||
[ run ../no_cxx11_defaulted_moves_pass.cpp ]
|
||||
[ compile-fail ../no_cxx11_defaulted_moves_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_CXX11_FINAL" :
|
||||
[ run ../no_cxx11_final_pass.cpp ]
|
||||
[ compile-fail ../no_cxx11_final_fail.cpp ] ;
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// (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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1068,6 +1068,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_CXX11_DECLTYPE);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_DECLTYPE_N3276);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_DEFAULTED_MOVES);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_DELETED_FUNCTIONS);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_EXTERN_TEMPLATE);
|
||||
@@ -1200,6 +1201,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_VOID_RETURNS);
|
||||
|
||||
|
||||
|
||||
// END GENERATED BLOCK
|
||||
|
||||
PRINT_MACRO(BOOST_INTEL);
|
||||
|
||||
+11
-1
@@ -1,4 +1,4 @@
|
||||
// This file was automatically generated on Sun Jul 9 16:30:35 2017
|
||||
// This file was automatically generated on Wed Jan 03 23:31:31 2018
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to the
|
||||
@@ -122,6 +122,11 @@ namespace boost_no_cxx11_allocator = empty_boost;
|
||||
#else
|
||||
namespace boost_no_cxx11_atomic_smart_ptr = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_DEFAULTED_MOVES
|
||||
#include "boost_no_cxx11_defaulted_moves.ipp"
|
||||
#else
|
||||
namespace boost_no_cxx11_defaulted_moves = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_FINAL
|
||||
#include "boost_no_cxx11_final.ipp"
|
||||
#else
|
||||
@@ -1261,6 +1266,11 @@ int main( int, char *[] )
|
||||
std::cerr << "Failed test for BOOST_NO_CXX11_ATOMIC_SMART_PTR at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_cxx11_defaulted_moves::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_CXX11_DEFAULTED_MOVES at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_cxx11_final::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_CXX11_FINAL at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Wed Jan 03 23:31:30 2018
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// 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 the most recent version.//
|
||||
// Revision $Id$
|
||||
//
|
||||
|
||||
|
||||
// Test file for macro BOOST_NO_CXX11_DEFAULTED_MOVES
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_CXX11_DEFAULTED_MOVES should not be defined.
|
||||
// See file boost_no_cxx11_defaulted_moves.ipp for details
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_NO_CXX11_DEFAULTED_MOVES
|
||||
#include "boost_no_cxx11_defaulted_moves.ipp"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_cxx11_defaulted_moves::test();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Wed Jan 03 23:31:30 2018
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// 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 the most recent version.//
|
||||
// Revision $Id$
|
||||
//
|
||||
|
||||
|
||||
// Test file for macro BOOST_NO_CXX11_DEFAULTED_MOVES
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_CXX11_DEFAULTED_MOVES should be defined.
|
||||
// See file boost_no_cxx11_defaulted_moves.ipp for details
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_NO_CXX11_DEFAULTED_MOVES
|
||||
#include "boost_no_cxx11_defaulted_moves.ipp"
|
||||
#else
|
||||
namespace boost_no_cxx11_defaulted_moves = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_cxx11_defaulted_moves::test();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user