mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Add missing files.
This commit is contained in:
32
test/boost_no_cxx17_hdr_variant.ipp
Normal file
32
test/boost_no_cxx17_hdr_variant.ipp
Normal file
@ -0,0 +1,32 @@
|
||||
// (C) Copyright John Maddock 2019
|
||||
|
||||
// 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_CXX17_HDR_VARIANT
|
||||
// TITLE: C++17 header <variant> unavailable
|
||||
// DESCRIPTION: The standard library does not supply C++17 header <variant>
|
||||
|
||||
#include <variant>
|
||||
|
||||
namespace boost_no_cxx17_hdr_variant {
|
||||
|
||||
int test()
|
||||
{
|
||||
using std::variant;
|
||||
using std::visit;
|
||||
using std::holds_alternative;
|
||||
using std::get;
|
||||
using std::get_if;
|
||||
using std::monostate;
|
||||
using std::bad_variant_access;
|
||||
using std::variant_size;
|
||||
using std::variant_alternative;
|
||||
using std::variant_npos;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
37
test/no_cxx17_hdr_variant_fail.cpp
Normal file
37
test/no_cxx17_hdr_variant_fail.cpp
Normal file
@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Mon Apr 1 19:04:04 2019
|
||||
// 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_CXX17_HDR_VARIANT
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_CXX17_HDR_VARIANT should not be defined.
|
||||
// See file boost_no_cxx17_hdr_variant.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_CXX17_HDR_VARIANT
|
||||
#include "boost_no_cxx17_hdr_variant.ipp"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_cxx17_hdr_variant::test();
|
||||
}
|
||||
|
37
test/no_cxx17_hdr_variant_pass.cpp
Normal file
37
test/no_cxx17_hdr_variant_pass.cpp
Normal file
@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Mon Apr 1 19:04:04 2019
|
||||
// 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_CXX17_HDR_VARIANT
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_CXX17_HDR_VARIANT should be defined.
|
||||
// See file boost_no_cxx17_hdr_variant.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_CXX17_HDR_VARIANT
|
||||
#include "boost_no_cxx17_hdr_variant.ipp"
|
||||
#else
|
||||
namespace boost_no_cxx17_hdr_variant = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_cxx17_hdr_variant::test();
|
||||
}
|
||||
|
Reference in New Issue
Block a user