forked from boostorg/config
Added BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS.
Updated tests to not use Boost.Test. [SVN r23146]
This commit is contained in:
12
config.htm
12
config.htm
@ -624,6 +624,12 @@ f(&bar); // should choose #2.</pre>
|
||||
templates. See <a href="../../boost/functional.hpp">boost/functional.hpp</a> for
|
||||
example.</td>
|
||||
</tr>
|
||||
<TR>
|
||||
<TD vAlign="top" width="51%">BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS</TD>
|
||||
<TD vAlign="top" width="16%">Compiler</TD>
|
||||
<TD vAlign="top" width="33%">Pointers to members don't work when used as template
|
||||
parameters.</TD>
|
||||
</TR>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_PRIVATE_IN_AGGREGATE</td>
|
||||
<td valign="top" width="16%">Compiler</td>
|
||||
@ -1319,12 +1325,12 @@ namespace boost{
|
||||
<p>When you name the macro, follow the BOOST_NO_SOMETHING naming convention, so
|
||||
that it's obvious that this is a macro reporting a defect.</p>
|
||||
<p>Finally, add the test program to the regression tests. You will need to place
|
||||
the test case in a .cxx file with the following comments near the top:</p>
|
||||
the test case in a .ipp file with the following comments near the top:</p>
|
||||
<pre>// MACRO: BOOST_NO_FOO
|
||||
// TITLE: foo
|
||||
// DESCRIPTION: If the compiler fails to support foo</pre>
|
||||
<p>These comments are processed by the autoconf script, so make sure the format
|
||||
follows the one given. The file should be named "boost_no_foo.cxx", where foo
|
||||
follows the one given. The file should be named "boost_no_foo.ipp", where foo
|
||||
is the defect description - try and keep the file name under the Mac 30
|
||||
character filename limit though. You will also need to provide a function
|
||||
prototype "int test()" that is declared in a namespace with the same name as
|
||||
@ -1349,7 +1355,7 @@ int test()
|
||||
<h4><a name="feature_guidelines"></a>Adding New Feature Test Macros</h4>
|
||||
<p>When you need to add a macro that describes a feature that the standard does
|
||||
not require, follow the convention for adding a new defect macro (above), but
|
||||
call the macro BOOST_HAS_FOO, and name the test file "boost_has_foo.cxx". Try
|
||||
call the macro BOOST_HAS_FOO, and name the test file "boost_has_foo.ipp". Try
|
||||
not to add feature test macros unnecessarily, if there is a platform specific
|
||||
macro that can already be used (for example _WIN32, __BEOS__, or __linux) to
|
||||
identify the feature then use that. Try to keep the macro to a feature group,
|
||||
|
330
test/Jamfile
330
test/Jamfile
@ -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 Jun 15 11:50:28 GMTST 2004,
|
||||
# This file was automatically generated on Tue Jun 22 13:14:16 GMTST 2004,
|
||||
# by libs/config/tools/generate
|
||||
#
|
||||
# If you need to alter build preferences then set them in
|
||||
@ -17,246 +17,248 @@ run limits_test.cpp <template>config_test_options ;
|
||||
run abi/abi_test.cpp abi/main.cpp <template>config_options ;
|
||||
|
||||
test-suite "BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP" :
|
||||
[ run no_arg_dep_lookup_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_arg_dep_lookup_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_arg_dep_lookup_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_arg_dep_lookup_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS" :
|
||||
[ run no_array_type_spec_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_array_type_spec_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_array_type_spec_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_array_type_spec_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_AUTO_PTR" :
|
||||
[ run no_auto_ptr_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_auto_ptr_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_auto_ptr_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_auto_ptr_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_BCB_PARTIAL_SPECIALIZATION_BUG" :
|
||||
[ run no_bcb_partial_spec_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_bcb_partial_spec_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_bcb_partial_spec_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_bcb_partial_spec_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_CTYPE_FUNCTIONS" :
|
||||
[ run no_ctype_functions_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_ctype_functions_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_ctype_functions_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_ctype_functions_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_CV_SPECIALIZATIONS" :
|
||||
[ run no_cv_spec_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_cv_spec_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_cv_spec_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_cv_spec_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_CV_VOID_SPECIALIZATIONS" :
|
||||
[ run no_cv_void_spec_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_cv_void_spec_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_cv_void_spec_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_cv_void_spec_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_CWCHAR" :
|
||||
[ run no_cwchar_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_cwchar_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_cwchar_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_cwchar_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_CWCTYPE" :
|
||||
[ run no_cwctype_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_cwctype_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_cwctype_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_cwctype_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_DEDUCED_TYPENAME" :
|
||||
[ run no_ded_typename_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_ded_typename_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_ded_typename_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_ded_typename_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_DEPENDENT_NESTED_DERIVATIONS" :
|
||||
[ run no_dep_nested_class_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_dep_nested_class_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_dep_nested_class_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_dep_nested_class_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS" :
|
||||
[ run no_dep_val_param_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_dep_val_param_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_dep_val_param_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_dep_val_param_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_EXCEPTION_STD_NAMESPACE" :
|
||||
[ run no_excep_std_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_excep_std_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_excep_std_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_excep_std_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_EXCEPTIONS" :
|
||||
[ run no_exceptions_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_exceptions_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_exceptions_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_exceptions_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS" :
|
||||
[ run no_exp_func_tem_arg_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_exp_func_tem_arg_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_exp_func_tem_arg_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_exp_func_tem_arg_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_FUNCTION_TEMPLATE_ORDERING" :
|
||||
[ run no_func_tmp_order_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_func_tmp_order_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_func_tmp_order_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_func_tmp_order_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_MS_INT64_NUMERIC_LIMITS" :
|
||||
[ run no_i64_limits_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_i64_limits_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_i64_limits_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_i64_limits_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_INCLASS_MEMBER_INITIALIZATION" :
|
||||
[ run no_inline_memb_init_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_inline_memb_init_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_inline_memb_init_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_inline_memb_init_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_INTEGRAL_INT64_T" :
|
||||
[ run no_integral_int64_t_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_integral_int64_t_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_integral_int64_t_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_integral_int64_t_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS" :
|
||||
[ run no_iter_construct_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_iter_construct_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_iter_construct_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_iter_construct_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_LIMITS" :
|
||||
[ run no_limits_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_limits_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_limits_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_limits_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS" :
|
||||
[ run no_limits_const_exp_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_limits_const_exp_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_limits_const_exp_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_limits_const_exp_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_LONG_LONG_NUMERIC_LIMITS" :
|
||||
[ run no_ll_limits_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_ll_limits_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_ll_limits_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_ll_limits_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS" :
|
||||
[ run no_mem_func_spec_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_mem_func_spec_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_mem_func_spec_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_mem_func_spec_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_MEMBER_TEMPLATE_KEYWORD" :
|
||||
[ run no_mem_tem_keyword_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_mem_tem_keyword_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_mem_tem_keyword_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_mem_tem_keyword_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS" :
|
||||
[ run no_mem_tem_pnts_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_mem_tem_pnts_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_MEMBER_TEMPLATE_FRIENDS" :
|
||||
[ run no_mem_templ_frnds_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_mem_templ_frnds_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_mem_templ_frnds_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_mem_templ_frnds_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_MEMBER_TEMPLATES" :
|
||||
[ run no_mem_templates_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_mem_templates_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_mem_templates_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_mem_templates_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_OPERATORS_IN_NAMESPACE" :
|
||||
[ run no_ops_in_namespace_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_ops_in_namespace_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_ops_in_namespace_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_ops_in_namespace_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION" :
|
||||
[ run no_partial_spec_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_partial_spec_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_partial_spec_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_partial_spec_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_PRIVATE_IN_AGGREGATE" :
|
||||
[ run no_priv_aggregate_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_priv_aggregate_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_priv_aggregate_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_priv_aggregate_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_POINTER_TO_MEMBER_CONST" :
|
||||
[ run no_ptr_mem_const_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_ptr_mem_const_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_ptr_mem_const_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_ptr_mem_const_fail.cpp <template>config_options ] ;
|
||||
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 ] ;
|
||||
[ run no_ret_det_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_ret_det_fail.cpp <template>config_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 ] ;
|
||||
[ run no_sfinae_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_sfinae_fail.cpp <template>config_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 ] ;
|
||||
[ run no_sstream_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_sstream_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_ALLOCATOR" :
|
||||
[ run no_std_allocator_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_allocator_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_allocator_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_allocator_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_DISTANCE" :
|
||||
[ run no_std_distance_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_distance_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_distance_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_distance_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_ITERATOR_TRAITS" :
|
||||
[ run no_std_iter_traits_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_iter_traits_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_iter_traits_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_iter_traits_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_ITERATOR" :
|
||||
[ run no_std_iterator_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_iterator_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_iterator_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_iterator_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_LOCALE" :
|
||||
[ run no_std_locale_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_locale_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_locale_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_locale_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_MESSAGES" :
|
||||
[ run no_std_messages_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_messages_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_messages_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_messages_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_MIN_MAX" :
|
||||
[ run no_std_min_max_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_min_max_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_min_max_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_min_max_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN" :
|
||||
[ run no_std_oi_assign_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_oi_assign_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_oi_assign_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_oi_assign_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_USE_FACET" :
|
||||
[ run no_std_use_facet_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_use_facet_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_use_facet_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_use_facet_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_WSTREAMBUF" :
|
||||
[ run no_std_wstreambuf_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_wstreambuf_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_wstreambuf_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_wstreambuf_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STD_WSTRING" :
|
||||
[ run no_std_wstring_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_std_wstring_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_std_wstring_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_std_wstring_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_STDC_NAMESPACE" :
|
||||
[ run no_stdc_namespace_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_stdc_namespace_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_stdc_namespace_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_stdc_namespace_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_SWPRINTF" :
|
||||
[ run no_swprintf_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_swprintf_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_swprintf_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_swprintf_fail.cpp <template>config_options ] ;
|
||||
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 ] ;
|
||||
[ run no_template_template_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_template_template_fail.cpp <template>config_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 ] ;
|
||||
[ run no_using_breaks_adl_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_using_breaks_adl_fail.cpp <template>config_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 ] ;
|
||||
[ run no_using_decl_overld_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_using_decl_overld_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_USING_TEMPLATE" :
|
||||
[ run no_using_template_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_using_template_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_using_template_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_using_template_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_VOID_RETURNS" :
|
||||
[ run no_void_returns_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_void_returns_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_void_returns_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_void_returns_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_NO_INTRINSIC_WCHAR_T" :
|
||||
[ run no_wchar_t_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail no_wchar_t_fail.cpp <template>config_test_options ] ;
|
||||
[ run no_wchar_t_pass.cpp <template>config_options ]
|
||||
[ compile-fail no_wchar_t_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_TWO_ARG_USE_FACET" :
|
||||
[ run has_2arg_use_facet_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_2arg_use_facet_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_2arg_use_facet_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_2arg_use_facet_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_BETHREADS" :
|
||||
[ run has_bethreads_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_bethreads_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_bethreads_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_bethreads_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_CLOCK_GETTIME" :
|
||||
[ run has_clock_gettime_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_clock_gettime_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_clock_gettime_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_clock_gettime_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_DIRENT_H" :
|
||||
[ run has_dirent_h_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_dirent_h_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_dirent_h_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_dirent_h_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_FTIME" :
|
||||
[ run has_ftime_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_ftime_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_ftime_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_ftime_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_GETTIMEOFDAY" :
|
||||
[ run has_gettimeofday_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_gettimeofday_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_gettimeofday_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_gettimeofday_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_HASH" :
|
||||
[ run has_hash_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_hash_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_hash_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_hash_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_LONG_LONG" :
|
||||
[ run has_long_long_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_long_long_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_long_long_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_long_long_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_MACRO_USE_FACET" :
|
||||
[ run has_macro_use_facet_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_macro_use_facet_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_macro_use_facet_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_macro_use_facet_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_MS_INT64" :
|
||||
[ run has_ms_int64_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_ms_int64_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_ms_int64_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_ms_int64_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_NANOSLEEP" :
|
||||
[ run has_nanosleep_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_nanosleep_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_nanosleep_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_nanosleep_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_NL_TYPES_H" :
|
||||
[ run has_nl_types_h_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_nl_types_h_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_nl_types_h_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_nl_types_h_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_NRVO" :
|
||||
[ run has_nrvo_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_nrvo_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_nrvo_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_nrvo_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_PARTIAL_STD_ALLOCATOR" :
|
||||
[ run has_part_alloc_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_part_alloc_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_part_alloc_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_part_alloc_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_PTHREAD_DELAY_NP" :
|
||||
[ run has_pthread_delay_np_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_pthread_delay_np_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_pthread_delay_np_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_pthread_delay_np_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE" :
|
||||
[ run has_pthread_ma_st_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_pthread_ma_st_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_pthread_ma_st_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_pthread_ma_st_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_PTHREAD_YIELD" :
|
||||
[ run has_pthread_yield_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_pthread_yield_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_pthread_yield_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_pthread_yield_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_PTHREADS" :
|
||||
[ run has_pthreads_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_pthreads_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_pthreads_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_pthreads_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_SCHED_YIELD" :
|
||||
[ run has_sched_yield_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_sched_yield_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_sched_yield_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_sched_yield_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_SGI_TYPE_TRAITS" :
|
||||
[ run has_sgi_type_traits_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_sgi_type_traits_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_sgi_type_traits_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_sgi_type_traits_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_SIGACTION" :
|
||||
[ run has_sigaction_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_sigaction_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_sigaction_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_sigaction_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_SLIST" :
|
||||
[ run has_slist_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_slist_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_slist_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_slist_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_STDINT_H" :
|
||||
[ run has_stdint_h_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_stdint_h_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_stdint_h_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_stdint_h_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_STLP_USE_FACET" :
|
||||
[ run has_stlp_use_facet_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_stlp_use_facet_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_stlp_use_facet_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_stlp_use_facet_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_UNISTD_H" :
|
||||
[ run has_unistd_h_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_unistd_h_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_unistd_h_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_unistd_h_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_MSVC6_MEMBER_TEMPLATES" :
|
||||
[ run has_vc6_mem_templ_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_vc6_mem_templ_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_vc6_mem_templ_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_vc6_mem_templ_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_MSVC_STD_ITERATOR" :
|
||||
[ run has_vc_iterator_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_vc_iterator_fail.cpp <template>config_test_options ] ;
|
||||
[ run has_vc_iterator_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_vc_iterator_fail.cpp <template>config_options ] ;
|
||||
test-suite "BOOST_HAS_WINTHREADS" :
|
||||
[ run has_winthreads_pass.cpp <template>config_test_options ]
|
||||
[ compile-fail has_winthreads_fail.cpp <template>config_test_options ] ;
|
||||
|
||||
[ run has_winthreads_pass.cpp <template>config_options ]
|
||||
[ compile-fail has_winthreads_fail.cpp <template>config_options ] ;
|
||||
|
49
test/boost_no_mem_tem_pnts.ipp
Normal file
49
test/boost_no_mem_tem_pnts.ipp
Normal file
@ -0,0 +1,49 @@
|
||||
// (C) Joaqu<71>n M L<>pez Mu<4D>oz 2004.
|
||||
// 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_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
||||
// TITLE: pointers to members as template arguments
|
||||
// DESCRIPTION: Non-type template parameters which take pointers
|
||||
// to members, fail to work correctly.
|
||||
|
||||
|
||||
namespace boost_no_pointer_to_member_template_parameters{
|
||||
|
||||
struct pair
|
||||
{
|
||||
int x, y;
|
||||
|
||||
pair(int x_,int y_)
|
||||
: x(x_), y(y_)
|
||||
{}
|
||||
};
|
||||
|
||||
template<int pair::* PtrToPairMember>
|
||||
struct foo
|
||||
{
|
||||
int bar(pair& p)
|
||||
{
|
||||
return p.*PtrToPairMember;
|
||||
}
|
||||
};
|
||||
|
||||
int test()
|
||||
{
|
||||
pair p(0,1);
|
||||
foo<&pair::x> fx;
|
||||
foo<&pair::y> fy;
|
||||
|
||||
if((fx.bar(p) != 0) || (fy.bar(p) != 1))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -278,6 +278,7 @@ void print_compiler_macros()
|
||||
PRINT_MACRO(__STDC_HOSTED__);
|
||||
PRINT_MACRO(__COMO__);
|
||||
PRINT_MACRO(__COMO_VERSION__);
|
||||
PRINT_MACRO(__DM__);
|
||||
}
|
||||
|
||||
void print_stdlib_macros()
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_*.ipp on
|
||||
// Tue Jun 15 11:50:28 GMTST 2004
|
||||
// Tue Jun 22 13:14:16 GMTST 2004
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <iostream>
|
||||
@ -144,6 +144,11 @@ namespace boost_no_member_function_specializations = empty_boost;
|
||||
#else
|
||||
namespace boost_no_member_template_keyword = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
||||
#include "boost_no_mem_tem_pnts.ipp"
|
||||
#else
|
||||
namespace boost_no_pointer_to_member_template_parameters = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
#include "boost_no_mem_templ_frnds.ipp"
|
||||
#else
|
||||
@ -567,6 +572,11 @@ int main( int, char *[] )
|
||||
std::cerr << "Failed test for BOOST_HAS_WINTHREADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_pointer_to_member_template_parameters::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_HAS_WINTHREADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_member_template_keyword::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_HAS_WINTHREADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
36
test/no_mem_tem_pnts_fail.cpp
Normal file
36
test/no_mem_tem_pnts_fail.cpp
Normal file
@ -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_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS need not be defined.
|
||||
// see boost_no_mem_tem_pnts.ipp for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_mem_tem_pnts.ipp on
|
||||
// Tue Jun 22 13:14:16 GMTST 2004
|
||||
|
||||
// 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_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
||||
#include "boost_no_mem_tem_pnts.ipp"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_pointer_to_member_template_parameters::test();
|
||||
}
|
||||
|
36
test/no_mem_tem_pnts_pass.cpp
Normal file
36
test/no_mem_tem_pnts_pass.cpp
Normal file
@ -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_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS needs to be defined.
|
||||
// see boost_no_mem_tem_pnts.ipp for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_mem_tem_pnts.ipp on
|
||||
// Tue Jun 22 13:14:16 GMTST 2004
|
||||
|
||||
// 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_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
||||
#include "boost_no_mem_tem_pnts.ipp"
|
||||
#else
|
||||
namespace boost_no_pointer_to_member_template_parameters = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_pointer_to_member_template_parameters::test();
|
||||
}
|
||||
|
@ -192,8 +192,8 @@ EOF
|
||||
echo "compile-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
echo 'test-suite "'$macroname'" : ' >> ../test/Jamfile
|
||||
echo "[ run $basename""_pass.cpp <template>config_test_options ]" >> ../test/Jamfile
|
||||
echo "[ compile-fail $basename""_fail.cpp <template>config_test_options ] ;" >> ../test/Jamfile
|
||||
echo "[ run $basename""_pass.cpp <template>config_options ]" >> ../test/Jamfile
|
||||
echo "[ compile-fail $basename""_fail.cpp <template>config_options ] ;" >> ../test/Jamfile
|
||||
|
||||
done
|
||||
|
||||
@ -318,8 +318,8 @@ EOF
|
||||
echo "compile-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
echo 'test-suite "'$macroname'" : ' >> ../test/Jamfile
|
||||
echo "[ run $basename""_pass.cpp <template>config_test_options ]" >> ../test/Jamfile
|
||||
echo "[ compile-fail $basename""_fail.cpp <template>config_test_options ] ;" >> ../test/Jamfile
|
||||
echo "[ run $basename""_pass.cpp <template>config_options ]" >> ../test/Jamfile
|
||||
echo "[ compile-fail $basename""_fail.cpp <template>config_options ] ;" >> ../test/Jamfile
|
||||
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user