forked from boostorg/config
Add BOOST_NO_CXX20_HDR_VERSION.
Also fix some libcpp.hpp typos.
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 Tue Aug 17 16:27:31 2021
|
||||
# This file was automatically generated on Thu Feb 3 18:10:41 2022
|
||||
# by libs/config/tools/generate.cpp
|
||||
# Copyright John Maddock.
|
||||
# Use, modification and distribution are subject to the
|
||||
@@ -430,6 +430,9 @@ test-suite "BOOST_NO_CXX20_HDR_STOP_TOKEN" :
|
||||
test-suite "BOOST_NO_CXX20_HDR_SYNCSTREAM" :
|
||||
[ run ../no_cxx20_hdr_syncstream_pass.cpp ]
|
||||
[ compile-fail ../no_cxx20_hdr_syncstream_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_CXX20_HDR_VERSION" :
|
||||
[ run ../no_cxx20_hdr_version_pass.cpp ]
|
||||
[ compile-fail ../no_cxx20_hdr_version_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_CXX98_BINDERS" :
|
||||
[ run ../no_cxx98_binders_pass.cpp ]
|
||||
[ compile-fail ../no_cxx98_binders_fail.cpp ] ;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// (C) Copyright John Maddock 2021
|
||||
|
||||
// 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_CXX20_HDR_VERSION
|
||||
// TITLE: C++20 <version> header is either not present or too broken to be used
|
||||
// DESCRIPTION: The compiler does not support the C++20 header <version>
|
||||
|
||||
#include <version>
|
||||
|
||||
namespace boost_no_cxx20_hdr_version {
|
||||
|
||||
int test()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1196,6 +1196,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_CXX20_HDR_SPAN);
|
||||
PRINT_MACRO(BOOST_NO_CXX20_HDR_STOP_TOKEN);
|
||||
PRINT_MACRO(BOOST_NO_CXX20_HDR_SYNCSTREAM);
|
||||
PRINT_MACRO(BOOST_NO_CXX20_HDR_VERSION);
|
||||
PRINT_MACRO(BOOST_NO_CXX98_BINDERS);
|
||||
PRINT_MACRO(BOOST_NO_CXX98_FUNCTION_BASE);
|
||||
PRINT_MACRO(BOOST_NO_CXX98_RANDOM_SHUFFLE);
|
||||
@@ -1264,6 +1265,7 @@ void print_boost_macros()
|
||||
|
||||
|
||||
|
||||
|
||||
// END GENERATED BLOCK
|
||||
|
||||
PRINT_MACRO(BOOST_CXX_VERSION);
|
||||
|
||||
+11
-1
@@ -1,4 +1,4 @@
|
||||
// This file was automatically generated on Tue Aug 17 16:27:31 2021
|
||||
// This file was automatically generated on Thu Feb 3 18:10:41 2022
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-21.
|
||||
// Use, modification and distribution are subject to the
|
||||
@@ -517,6 +517,11 @@ namespace boost_no_cxx20_hdr_stop_token = empty_boost;
|
||||
#else
|
||||
namespace boost_no_cxx20_hdr_syncstream = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX20_HDR_VERSION
|
||||
#include "boost_no_cxx20_hdr_version.ipp"
|
||||
#else
|
||||
namespace boost_no_cxx20_hdr_version = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX98_BINDERS
|
||||
#include "boost_no_cxx98_binders.ipp"
|
||||
#else
|
||||
@@ -1821,6 +1826,11 @@ int main( int, char *[] )
|
||||
std::cerr << "Failed test for BOOST_NO_CXX20_HDR_SYNCSTREAM at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_cxx20_hdr_version::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_CXX20_HDR_VERSION at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_cxx98_binders::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_CXX98_BINDERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Thu Feb 3 18:10:33 2022
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-21.
|
||||
// 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_CXX20_HDR_VERSION
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_CXX20_HDR_VERSION should not be defined.
|
||||
// See file boost_no_cxx20_hdr_version.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_CXX20_HDR_VERSION
|
||||
#include "boost_no_cxx20_hdr_version.ipp"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_cxx20_hdr_version::test();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Thu Feb 3 18:10:33 2022
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-21.
|
||||
// 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_CXX20_HDR_VERSION
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_CXX20_HDR_VERSION should be defined.
|
||||
// See file boost_no_cxx20_hdr_version.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_CXX20_HDR_VERSION
|
||||
#include "boost_no_cxx20_hdr_version.ipp"
|
||||
#else
|
||||
namespace boost_no_cxx20_hdr_version = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_cxx20_hdr_version::test();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user