-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added macro BOOST_NO_CXX11_DEFAULTED_MOVES
- Loading branch information
Showing
13 changed files
with
135 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/assignmet unavailable | ||
// DESCRIPTION: The compiler does not support C++0x defaulting of move constructor/assignmet | ||
|
||
namespace boost_no_cxx11_defaulted_moves { | ||
|
||
struct foo { | ||
foo(foo&&) = default; | ||
foo& operator=(foo&&) = default; | ||
}; | ||
|
||
int test() | ||
{ | ||
return 0; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} | ||
|
typo
dafaulted