Add missing files.

This commit is contained in:
jzmaddock
2019-04-01 21:19:11 +01:00
parent d112744885
commit a16e603718
3 changed files with 106 additions and 0 deletions

View 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;
}
}

View 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();
}

View 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();
}