forked from boostorg/config
Add Vincete Botet's patches for new BOOST_NO_NUMERIC_LIMITS_LOWEST macro.
Disabled BOOST_HAS_NL_TYPES macro for cygwin - it lies about being XSI conforming :-( [SVN r65594]
This commit is contained in:
1 parent
c02ec6995d
commit
0e321900b2
17 files changed
+92
-4
No files matched your search
+4
-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 Aug 17 09:59:01 2010
|
||||
# This file was automatically generated on Sat Sep 25 16:53:42 2010
|
||||
# by libs/config/tools/generate.cpp
|
||||
# Copyright John Maddock.
|
||||
# Use, modification and distribution are subject to the
|
||||
@@ -367,6 +367,9 @@ test-suite "BOOST_NO_LIMITS" :
|
||||
test-suite "BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS" :
|
||||
[ run ../no_limits_const_exp_pass.cpp ]
|
||||
[ compile-fail ../no_limits_const_exp_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_NUMERIC_LIMITS_LOWEST" :
|
||||
[ run ../no_limits_lowest_pass.cpp ]
|
||||
[ compile-fail ../no_limits_lowest_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_LONG_LONG_NUMERIC_LIMITS" :
|
||||
[ run ../no_ll_limits_pass.cpp ]
|
||||
[ compile-fail ../no_ll_limits_fail.cpp ] ;
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// (C) Copyright Vicente J. Botet Escriba 2010.
|
||||
// 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_NUMERIC_LIMITS_LOWEST
|
||||
// TITLE: static function lowest() in numeric_limits class <limits>
|
||||
// DESCRIPTION: static function numeric_limits<T>::lowest() are not available for use.
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace boost_no_numeric_limits_lowest{
|
||||
|
||||
int f()
|
||||
{
|
||||
// this is never called, it just has to compile:
|
||||
return std::numeric_limits<int>::lowest();
|
||||
}
|
||||
|
||||
int test()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1026,6 +1026,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_MS_INT64_NUMERIC_LIMITS);
|
||||
PRINT_MACRO(BOOST_NO_NESTED_FRIENDSHIP);
|
||||
PRINT_MACRO(BOOST_NO_NULLPTR);
|
||||
PRINT_MACRO(BOOST_NO_NUMERIC_LIMITS_LOWEST);
|
||||
PRINT_MACRO(BOOST_NO_OPERATORS_IN_NAMESPACE);
|
||||
PRINT_MACRO(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS);
|
||||
PRINT_MACRO(BOOST_NO_POINTER_TO_MEMBER_CONST);
|
||||
@@ -1086,6 +1087,8 @@ void print_boost_macros()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// END GENERATED BLOCK
|
||||
|
||||
PRINT_MACRO(BOOST_INTEL);
|
||||
|
||||
+11
-1
@@ -1,4 +1,4 @@
|
||||
// This file was automatically generated on Tue Aug 17 09:59:01 2010
|
||||
// This file was automatically generated on Sat Sep 25 16:53:42 2010
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to the
|
||||
@@ -342,6 +342,11 @@ namespace boost_no_limits = empty_boost;
|
||||
#else
|
||||
namespace boost_no_limits_compile_time_constants = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
|
||||
#include "boost_no_limits_lowest.ipp"
|
||||
#else
|
||||
namespace boost_no_numeric_limits_lowest = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_LONG_LONG_NUMERIC_LIMITS
|
||||
#include "boost_no_ll_limits.ipp"
|
||||
#else
|
||||
@@ -1436,6 +1441,11 @@ int main( int, char *[] )
|
||||
std::cerr << "Failed test for BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_numeric_limits_lowest::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_NUMERIC_LIMITS_LOWEST at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_long_long_numeric_limits::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_LONG_LONG_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
||||
Reference in new issue
Block a user