forked from boostorg/config
Added new macro BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
[SVN r21222]
This commit is contained in:
1 parent
a941a117ce
commit
fd367acdcb
11 files changed
+533
-367
No files matched your search
+7
-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 Oct 7 11:26:18 GMTST 2003,
|
||||
# This file was automatically generated on Wed Dec 10 13:38:42 GMTST 2003,
|
||||
# by libs/config/tools/generate
|
||||
#
|
||||
# If you need to alter build preferences then set them in
|
||||
@@ -109,6 +109,9 @@ test-suite "BOOST_NO_POINTER_TO_MEMBER_CONST" :
|
||||
test-suite "BOOST_NO_UNREACHABLE_RETURN_DETECTION" :
|
||||
[ run no_ret_det_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_ret_det_fail.cpp <template>config_test_options ] ;
|
||||
test-suite "BOOST_NO_SFINAE" :
|
||||
[ run no_sfinae_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_sfinae_fail.cpp <template>config_test_options ] ;
|
||||
test-suite "BOOST_NO_STRINGSTREAM" :
|
||||
[ run no_sstream_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_sstream_fail.cpp <template>config_test_options ] ;
|
||||
@@ -154,6 +157,9 @@ test-suite "BOOST_NO_SWPRINTF" :
|
||||
test-suite "BOOST_NO_TEMPLATE_TEMPLATES" :
|
||||
[ run no_template_template_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_template_template_fail.cpp <template>config_test_options ] ;
|
||||
test-suite "BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL" :
|
||||
[ run no_using_breaks_adl_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_using_breaks_adl_fail.cpp <template>config_test_options ] ;
|
||||
test-suite "BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE" :
|
||||
[ run no_using_decl_overld_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_using_decl_overld_fail.cpp <template>config_test_options ] ;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
// (C) Copyright John Maddock 2001.
|
||||
// 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 most recent version.
|
||||
|
||||
// MACRO: BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
// TITLE: broken ADL
|
||||
// DESCRIPTION: Using declarations break argument dependent lookup
|
||||
// (probably Borland specific), the fix is to use
|
||||
// using namespace whatever; rather than
|
||||
// using whatever::symbol;.
|
||||
|
||||
|
||||
namespace boost
|
||||
{
|
||||
template <class T>
|
||||
T* get_pointer(T* p)
|
||||
{ return p; }
|
||||
|
||||
namespace inner2
|
||||
{
|
||||
template <class T>
|
||||
struct X {};
|
||||
|
||||
template <class T>
|
||||
T* get_pointer(X<T>)
|
||||
{ return 0; }
|
||||
}
|
||||
}
|
||||
|
||||
namespace user
|
||||
{
|
||||
template <class T>
|
||||
struct Y{};
|
||||
|
||||
template <class T>
|
||||
T* get_pointer(user::Y<T>)
|
||||
{ return 0; }
|
||||
|
||||
template <class T>
|
||||
int f(T x)
|
||||
{
|
||||
// use this as a workaround:
|
||||
//using namespace boost;
|
||||
// this statement breaks ADL:
|
||||
using boost::get_pointer; // conforming compilers require
|
||||
// this one to find the auto_ptr
|
||||
// and T* overloads
|
||||
return get_pointer(x) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
namespace boost_function_scope_using_declaration_breaks_adl{
|
||||
|
||||
int test()
|
||||
{
|
||||
int i;
|
||||
typedef void* pv;
|
||||
i = user::f(pv());
|
||||
i = user::f(boost::inner2::X<int>());
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+3
-226
@@ -11,7 +11,7 @@
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_*.cxx on
|
||||
// Tue Oct 7 11:26:18 GMTST 2003
|
||||
// Wed Dec 10 13:38:42 GMTST 2003
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#define BOOST_INCLUDE_MAIN
|
||||
@@ -33,131 +33,66 @@ namespace boost_no_auto_ptr = empty_boost;
|
||||
#else
|
||||
namespace boost_bcb_partial_specialization_bug = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CTYPE_FUNCTIONS
|
||||
#include "boost_no_ctype_functions.cxx"
|
||||
#else
|
||||
namespace boost_no_ctype_functions = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CV_SPECIALIZATIONS
|
||||
#include "boost_no_cv_spec.cxx"
|
||||
#else
|
||||
namespace boost_no_cv_specializations = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
#include "boost_no_cv_void_spec.cxx"
|
||||
#else
|
||||
namespace boost_no_cv_void_specializations = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CWCHAR
|
||||
#include "boost_no_cwchar.cxx"
|
||||
#else
|
||||
namespace boost_no_cwchar = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_CWCTYPE
|
||||
#include "boost_no_cwctype.cxx"
|
||||
#else
|
||||
namespace boost_no_cwctype = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_DEDUCED_TYPENAME
|
||||
#include "boost_no_ded_typename.cxx"
|
||||
#else
|
||||
namespace boost_deduced_typename = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
|
||||
#include "boost_no_dep_nested_class.cxx"
|
||||
#else
|
||||
namespace boost_no_dependent_nested_derivations = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
||||
#include "boost_no_dep_val_param.cxx"
|
||||
#else
|
||||
namespace boost_no_dependent_types_in_template_value_parameters = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_EXCEPTION_STD_NAMESPACE
|
||||
#include "boost_no_excep_std.cxx"
|
||||
#else
|
||||
namespace boost_no_exception_std_namespace = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
#include "boost_no_exceptions.cxx"
|
||||
#else
|
||||
namespace boost_no_exceptions = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
||||
#include "boost_no_exp_func_tem_arg.cxx"
|
||||
#else
|
||||
namespace boost_no_explicit_function_template_arguments = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
||||
#include "boost_no_func_tmp_order.cxx"
|
||||
#else
|
||||
namespace boost_no_function_template_ordering = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_MS_INT64_NUMERIC_LIMITS
|
||||
#include "boost_no_i64_limits.cxx"
|
||||
#else
|
||||
namespace boost_no_ms_int64_numeric_limits = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
#include "boost_no_inline_memb_init.cxx"
|
||||
#else
|
||||
namespace boost_no_inclass_member_initialization = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_INTEGRAL_INT64_T
|
||||
#include "boost_no_integral_int64_t.cxx"
|
||||
#else
|
||||
namespace boost_no_integral_int64_t = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
|
||||
#include "boost_no_iter_construct.cxx"
|
||||
#else
|
||||
namespace boost_no_templated_iterator_constructors = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_LIMITS
|
||||
#include "boost_no_limits.cxx"
|
||||
#else
|
||||
namespace boost_no_limits = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
#include "boost_no_limits_const_exp.cxx"
|
||||
#else
|
||||
namespace boost_no_limits_compile_time_constants = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_LONG_LONG_NUMERIC_LIMITS
|
||||
#include "boost_no_ll_limits.cxx"
|
||||
#else
|
||||
namespace boost_no_long_long_numeric_limits = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
|
||||
#include "boost_no_mem_func_spec.cxx"
|
||||
#else
|
||||
namespace boost_no_member_function_specializations = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
#include "boost_no_mem_tem_keyword.cxx"
|
||||
#else
|
||||
namespace boost_no_member_template_keyword = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
#include "boost_no_mem_templ_frnds.cxx"
|
||||
#else
|
||||
namespace boost_no_member_template_friends = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_MEMBER_TEMPLATES
|
||||
#include "boost_no_mem_templates.cxx"
|
||||
#else
|
||||
namespace boost_no_member_templates = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
|
||||
#include "boost_no_ops_in_namespace.cxx"
|
||||
#else
|
||||
namespace boost_no_operators_in_namespace = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
#include "boost_no_partial_spec.cxx"
|
||||
#else
|
||||
namespace boost_no_template_partial_specialization = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
#include "boost_no_priv_aggregate.cxx"
|
||||
#else
|
||||
@@ -168,11 +103,6 @@ namespace boost_no_private_in_aggregate = empty_boost;
|
||||
#else
|
||||
namespace boost_no_pointer_to_member_const = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_UNREACHABLE_RETURN_DETECTION
|
||||
#include "boost_no_ret_det.cxx"
|
||||
#else
|
||||
namespace boost_no_unreachable_return_detection = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STRINGSTREAM
|
||||
#include "boost_no_sstream.cxx"
|
||||
#else
|
||||
@@ -183,61 +113,21 @@ namespace boost_no_stringstream = empty_boost;
|
||||
#else
|
||||
namespace boost_no_std_allocator = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_DISTANCE
|
||||
#include "boost_no_std_distance.cxx"
|
||||
#else
|
||||
namespace boost_no_std_distance = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_ITERATOR_TRAITS
|
||||
#include "boost_no_std_iter_traits.cxx"
|
||||
#else
|
||||
namespace boost_no_std_iterator_traits = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_ITERATOR
|
||||
#include "boost_no_std_iterator.cxx"
|
||||
#else
|
||||
namespace boost_no_std_iterator = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_LOCALE
|
||||
#include "boost_no_std_locale.cxx"
|
||||
#else
|
||||
namespace boost_no_std_locale = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_MESSAGES
|
||||
#include "boost_no_std_messages.cxx"
|
||||
#else
|
||||
namespace boost_no_std_messages = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_MIN_MAX
|
||||
#include "boost_no_std_min_max.cxx"
|
||||
#else
|
||||
namespace boost_no_std_min_max = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
|
||||
#include "boost_no_std_oi_assign.cxx"
|
||||
#else
|
||||
namespace boost_no_std_output_iterator_assign = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_USE_FACET
|
||||
#include "boost_no_std_use_facet.cxx"
|
||||
#else
|
||||
namespace boost_no_std_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_WSTREAMBUF
|
||||
#include "boost_no_std_wstreambuf.cxx"
|
||||
#else
|
||||
namespace boost_no_std_wstreambuf = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STD_WSTRING
|
||||
#include "boost_no_std_wstring.cxx"
|
||||
#else
|
||||
namespace boost_no_std_wstring = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_STDC_NAMESPACE
|
||||
#include "boost_no_stdc_namespace.cxx"
|
||||
#else
|
||||
namespace boost_no_stdc_namespace = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_SWPRINTF
|
||||
#include "boost_no_swprintf.cxx"
|
||||
#else
|
||||
@@ -248,11 +138,6 @@ namespace boost_no_swprintf = empty_boost;
|
||||
#else
|
||||
namespace boost_no_template_templates = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
|
||||
#include "boost_no_using_decl_overld.cxx"
|
||||
#else
|
||||
namespace boost_no_using_declaration_overloads_from_typename_base = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_USING_TEMPLATE
|
||||
#include "boost_no_using_template.cxx"
|
||||
#else
|
||||
@@ -263,146 +148,36 @@ namespace boost_no_using_template = empty_boost;
|
||||
#else
|
||||
namespace boost_no_void_returns = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_INTRINSIC_WCHAR_T
|
||||
#include "boost_no_wchar_t.cxx"
|
||||
#else
|
||||
namespace boost_no_intrinsic_wchar_t = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_TWO_ARG_USE_FACET
|
||||
#include "boost_has_2arg_use_facet.cxx"
|
||||
#else
|
||||
namespace boost_has_two_arg_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_BETHREADS
|
||||
#include "boost_has_bethreads.cxx"
|
||||
#else
|
||||
namespace boost_has_bethreads = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_CLOCK_GETTIME
|
||||
#include "boost_has_clock_gettime.cxx"
|
||||
#else
|
||||
namespace boost_has_clock_gettime = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_DIRENT_H
|
||||
#include "boost_has_dirent_h.cxx"
|
||||
#else
|
||||
namespace boost_has_dirent_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_FTIME
|
||||
#include "boost_has_ftime.cxx"
|
||||
#else
|
||||
namespace boost_has_ftime = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_GETTIMEOFDAY
|
||||
#include "boost_has_gettimeofday.cxx"
|
||||
#else
|
||||
namespace boost_has_gettimeofday = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_HASH
|
||||
#include "boost_has_hash.cxx"
|
||||
#else
|
||||
namespace boost_has_hash = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_LONG_LONG
|
||||
#include "boost_has_long_long.cxx"
|
||||
#else
|
||||
namespace boost_has_long_long = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_MACRO_USE_FACET
|
||||
#include "boost_has_macro_use_facet.cxx"
|
||||
#else
|
||||
namespace boost_has_macro_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.cxx"
|
||||
#else
|
||||
namespace boost_has_ms_int64 = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NANOSLEEP
|
||||
#include "boost_has_nanosleep.cxx"
|
||||
#else
|
||||
namespace boost_has_nanosleep = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NL_TYPES_H
|
||||
#include "boost_has_nl_types_h.cxx"
|
||||
#else
|
||||
namespace boost_has_nl_types_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NRVO
|
||||
#include "boost_has_nrvo.cxx"
|
||||
#else
|
||||
namespace boost_has_nrvo = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PARTIAL_STD_ALLOCATOR
|
||||
#include "boost_has_part_alloc.cxx"
|
||||
#else
|
||||
namespace boost_has_partial_std_allocator = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_DELAY_NP
|
||||
#include "boost_has_pthread_delay_np.cxx"
|
||||
#else
|
||||
namespace boost_has_pthread_delay_np = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
#include "boost_has_pthread_ma_st.cxx"
|
||||
#else
|
||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_YIELD
|
||||
#include "boost_has_pthread_yield.cxx"
|
||||
#else
|
||||
namespace boost_has_pthread_yield = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREADS
|
||||
#include "boost_has_pthreads.cxx"
|
||||
#else
|
||||
namespace boost_has_pthreads = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SCHED_YIELD
|
||||
#include "boost_has_sched_yield.cxx"
|
||||
#else
|
||||
namespace boost_has_sched_yield = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SGI_TYPE_TRAITS
|
||||
#include "boost_has_sgi_type_traits.cxx"
|
||||
#else
|
||||
namespace boost_has_sgi_type_traits = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SIGACTION
|
||||
#include "boost_has_sigaction.cxx"
|
||||
#else
|
||||
namespace boost_has_sigaction = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SLIST
|
||||
#include "boost_has_slist.cxx"
|
||||
#else
|
||||
namespace boost_has_slist = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_STDINT_H
|
||||
#include "boost_has_stdint_h.cxx"
|
||||
#else
|
||||
namespace boost_has_stdint_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_STLP_USE_FACET
|
||||
#include "boost_has_stlp_use_facet.cxx"
|
||||
#else
|
||||
namespace boost_has_stlp_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_UNISTD_H
|
||||
#include "boost_has_unistd_h.cxx"
|
||||
#else
|
||||
namespace boost_has_unistd_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_MSVC6_MEMBER_TEMPLATES
|
||||
#include "boost_has_vc6_mem_templ.cxx"
|
||||
#else
|
||||
namespace boost_msvc6_member_templates = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_MSVC_STD_ITERATOR
|
||||
#include "boost_has_vc_iterator.cxx"
|
||||
#else
|
||||
namespace boost_msvc_std_iterator = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_WINTHREADS
|
||||
#include "boost_has_winthreads.cxx"
|
||||
#else
|
||||
@@ -415,6 +190,7 @@ int test_main( int, char *[] )
|
||||
BOOST_TEST(0 == boost_no_void_returns::test());
|
||||
BOOST_TEST(0 == boost_no_using_template::test());
|
||||
BOOST_TEST(0 == boost_no_using_declaration_overloads_from_typename_base::test());
|
||||
BOOST_TEST(0 == boost_function_scope_using_declaration_breaks_adl::test());
|
||||
BOOST_TEST(0 == boost_no_template_templates::test());
|
||||
BOOST_TEST(0 == boost_no_swprintf::test());
|
||||
BOOST_TEST(0 == boost_no_stdc_namespace::test());
|
||||
@@ -430,6 +206,7 @@ int test_main( int, char *[] )
|
||||
BOOST_TEST(0 == boost_no_std_distance::test());
|
||||
BOOST_TEST(0 == boost_no_std_allocator::test());
|
||||
BOOST_TEST(0 == boost_no_stringstream::test());
|
||||
BOOST_TEST(0 == boost_no_sfinae::test());
|
||||
BOOST_TEST(0 == boost_no_unreachable_return_detection::test());
|
||||
BOOST_TEST(0 == boost_no_pointer_to_member_const::test());
|
||||
BOOST_TEST(0 == boost_no_private_in_aggregate::test());
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// 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.
|
||||
|
||||
// Test file for macro BOOST_NO_SFINAE
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_SFINAE need not be defined.
|
||||
// see boost_no_sfinae.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_sfinae.cxx on
|
||||
// Wed Dec 10 13:13:32 GMTST 2003
|
||||
|
||||
// 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_SFINAE
|
||||
#include "boost_no_sfinae.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_sfinae::test();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// 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.
|
||||
|
||||
// Test file for macro BOOST_NO_SFINAE
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_SFINAE needs to be defined.
|
||||
// see boost_no_sfinae.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_sfinae.cxx on
|
||||
// Wed Dec 10 13:13:32 GMTST 2003
|
||||
|
||||
// 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_SFINAE
|
||||
#include "boost_no_sfinae.cxx"
|
||||
#else
|
||||
namespace boost_no_sfinae = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_sfinae::test();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// 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.
|
||||
|
||||
// Test file for macro BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL need not be defined.
|
||||
// see boost_no_using_breaks_adl.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_using_breaks_adl.cxx on
|
||||
// Wed Dec 10 13:13:32 GMTST 2003
|
||||
|
||||
// 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_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
#include "boost_no_using_breaks_adl.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ::test();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// 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.
|
||||
|
||||
// Test file for macro BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL needs to be defined.
|
||||
// see boost_no_using_breaks_adl.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_using_breaks_adl.cxx on
|
||||
// Wed Dec 10 13:13:32 GMTST 2003
|
||||
|
||||
// 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_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
#include "boost_no_using_breaks_adl.cxx"
|
||||
#else
|
||||
namespace = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ::test();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user