forked from boostorg/type_traits
Fixes for Sun C++ 5.1
[SVN r10060]
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
#include <boost/type_traits/fwd.hpp>
|
||||
#endif
|
||||
|
||||
#include <climits> // for ULLONG_MAX/ULONG_LONG_MAX
|
||||
#include <limits.h> // for ULLONG_MAX/ULONG_LONG_MAX
|
||||
|
||||
namespace boost{
|
||||
|
||||
@ -267,3 +267,4 @@ struct is_fundamental
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -121,6 +121,8 @@ int cpp_main(int argc, char* argv[])
|
||||
// define the number of failures expected for given compilers:
|
||||
#ifdef __BORLANDC__
|
||||
unsigned int expected_failures = 2;
|
||||
#elif defined(__SUNPRO_CC)
|
||||
unsigned int expected_failures = 11;
|
||||
#elif defined(__GNUC__)
|
||||
unsigned int expected_failures = 1; // can't handle cv-qualified references
|
||||
#elif defined(BOOST_MSVC)
|
||||
@ -133,3 +135,4 @@ unsigned int expected_failures = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -61,6 +61,8 @@ int cpp_main(int argc, char* argv[])
|
||||
// define the number of failures expected for given compilers:
|
||||
#ifdef BOOST_MSVC
|
||||
unsigned int expected_failures = 3;
|
||||
#elif defined(__SUNPRO_CC)
|
||||
unsigned int expected_failures = 1;
|
||||
#elif defined(__GNUC__)
|
||||
unsigned int expected_failures = 1; // cr_type doesn't compile
|
||||
#else
|
||||
@ -68,3 +70,4 @@ unsigned int expected_failures = 0;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
@ -58,11 +58,13 @@ void is_function_tester<T>::check()
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef __SUNPRO_CC
|
||||
template <class T>
|
||||
void is_function_test(T& foo)
|
||||
{
|
||||
is_function_tester<T>::check();
|
||||
}
|
||||
#endif
|
||||
#ifndef BOOST_MSVC
|
||||
template <class T>
|
||||
void is_function_test(const T& foo)
|
||||
@ -108,3 +110,4 @@ unsigned int expected_failures = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -41,7 +41,10 @@ int cpp_main(int argc, char* argv[])
|
||||
#ifdef BOOST_MSVC
|
||||
// can't separate void and cv-void:
|
||||
unsigned int expected_failures = 1;
|
||||
#elif defined(__SUNPRO_CC)
|
||||
unsigned int expected_failures = 2;
|
||||
#else
|
||||
unsigned int expected_failures = 0;
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -213,6 +213,8 @@ int cpp_main(int argc, char* argv[])
|
||||
#ifdef __BORLANDC__
|
||||
// can't handle enum's or classes that are POD's
|
||||
unsigned int expected_failures = 10;
|
||||
#elif defined(__SUNPRO_CC)
|
||||
unsigned int expected_failures = 58;
|
||||
#elif defined(__GNUC__)
|
||||
// classes that are POD's, or empty:
|
||||
unsigned int expected_failures = 4;
|
||||
@ -225,3 +227,4 @@ unsigned int expected_failures = 4;
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user