forked from boostorg/config
Deprecated BOOST_NO_NUMERIC_LIMITS_LOWEST; use BOOST_NO_CXX11_NUMERIC_LIMITS instead
[SVN r79452]
This commit is contained in:
1 parent
043059d96b
commit
c4b13231ba
24 files changed
+65
-41
No files matched your search
+3
-3
@@ -367,9 +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_CXX11_NUMERIC_LIMITS" :
|
||||
[ run ../no_cxx11_numeric_limits_pass.cpp ]
|
||||
[ compile-fail ../no_cxx11_numeric_limits_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_LONG_LONG_NUMERIC_LIMITS" :
|
||||
[ run ../no_ll_limits_pass.cpp ]
|
||||
[ compile-fail ../no_ll_limits_fail.cpp ] ;
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
// See http://www.boost.org/libs/config for most recent version.
|
||||
|
||||
// MACRO: BOOST_NO_NUMERIC_LIMITS_LOWEST
|
||||
// MACRO: BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||
// 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{
|
||||
namespace boost_no_cxx11_numeric_limits{
|
||||
|
||||
int f()
|
||||
{
|
||||
@@ -1061,7 +1061,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_MEMBER_TEMPLATE_KEYWORD);
|
||||
PRINT_MACRO(BOOST_NO_MS_INT64_NUMERIC_LIMITS);
|
||||
PRINT_MACRO(BOOST_NO_NESTED_FRIENDSHIP);
|
||||
PRINT_MACRO(BOOST_NO_NUMERIC_LIMITS_LOWEST);
|
||||
PRINT_MACRO(BOOST_NO_CXX11_NUMERIC_LIMITS);
|
||||
PRINT_MACRO(BOOST_NO_OPERATORS_IN_NAMESPACE);
|
||||
PRINT_MACRO(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS);
|
||||
PRINT_MACRO(BOOST_NO_POINTER_TO_MEMBER_CONST);
|
||||
|
||||
@@ -342,10 +342,10 @@ 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"
|
||||
#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||
#include "boost_no_cxx11_numeric_limits.ipp"
|
||||
#else
|
||||
namespace boost_no_numeric_limits_lowest = empty_boost;
|
||||
namespace boost_no_cxx11_numeric_limits = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_LONG_LONG_NUMERIC_LIMITS
|
||||
#include "boost_no_ll_limits.ipp"
|
||||
@@ -1461,9 +1461,9 @@ 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())
|
||||
if(0 != boost_no_cxx11_numeric_limits::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_NUMERIC_LIMITS_LOWEST at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
std::cerr << "Failed test for BOOST_NO_CXX11_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_long_long_numeric_limits::test())
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
//
|
||||
|
||||
|
||||
// Test file for macro BOOST_NO_NUMERIC_LIMITS_LOWEST
|
||||
// Test file for macro BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_NUMERIC_LIMITS_LOWEST should not be defined.
|
||||
// BOOST_NO_CXX11_NUMERIC_LIMITS should not be defined.
|
||||
// See file boost_no_limits_lowest.ipp for details
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
@@ -24,14 +24,14 @@
|
||||
#include <boost/config.hpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
|
||||
#include "boost_no_limits_lowest.ipp"
|
||||
#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||
#include "boost_no_cxx11_numeric_limits.ipp"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_numeric_limits_lowest::test();
|
||||
return boost_no_cxx11_numeric_limits::test();
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
//
|
||||
|
||||
|
||||
// Test file for macro BOOST_NO_NUMERIC_LIMITS_LOWEST
|
||||
// Test file for macro BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_NUMERIC_LIMITS_LOWEST should be defined.
|
||||
// BOOST_NO_CXX11_NUMERIC_LIMITS should be defined.
|
||||
// See file boost_no_limits_lowest.ipp for details
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
@@ -24,14 +24,14 @@
|
||||
#include <boost/config.hpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
|
||||
#include "boost_no_limits_lowest.ipp"
|
||||
#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||
#include "boost_no_cxx11_numeric_limits.ipp"
|
||||
#else
|
||||
namespace boost_no_numeric_limits_lowest = empty_boost;
|
||||
namespace boost_no_cxx11_numeric_limits = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_numeric_limits_lowest::test();
|
||||
return boost_no_cxx11_numeric_limits::test();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user