Added defect macro BOOST_NO_CXX11_UNION_STATIC_DATA for compilers which do not support unions with static data.

This commit is contained in:
Edward Diener
2019-12-11 00:33:25 -05:00
parent 8aa8d541b3
commit 4031128717
165 changed files with 308 additions and 144 deletions
+37
View File
@@ -0,0 +1,37 @@
// This file was automatically generated on Mon Dec 09 09:47:37 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_CXX11_UNION_STATIC_DATA
// This file should not compile, if it does then
// BOOST_NO_CXX11_UNION_STATIC_DATA should not be defined.
// See file boost_no_union_static_data.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_UNION_STATIC_DATA
#include "boost_no_union_static_data.ipp"
#else
#error "this file should not compile"
#endif
int main( int, char *[] )
{
return boost_no_cxx11_union_static_data::test();
}