forked from boostorg/config
Compare commits
1 Commits
boost-1.28
...
boost-1.26
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70e8f90f8f |
99
config.htm
99
config.htm
@@ -11,8 +11,8 @@ content="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800080">
|
||||
|
||||
<p align="left"><img src="../../c++boost.gif" alt="Boost"
|
||||
width="277" height="86"></p>
|
||||
<p align="left"><img src="../../c++boost.gif" width="277"
|
||||
height="86"></p>
|
||||
|
||||
<h1 align="center">Boost Configuration Reference</h1>
|
||||
|
||||
@@ -270,15 +270,6 @@ they are listed in the following table: </p>
|
||||
threading support, even if the compiler in its current
|
||||
translation mode supports multiple threads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">BOOST_DISABLE_WIN32</td>
|
||||
<td>When defined, disables the use of Win32 specific
|
||||
API's, even when these are available. Also has the effect
|
||||
of setting BOOST_DISABLE_THREADS unless
|
||||
BOOST_HAS_PTHREADS is set. This option may be set
|
||||
automatically by the config system when it detects that
|
||||
the compiler is in "strict mode".</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4><a name="advanced_config"></a>Advanced configuration usage</h4>
|
||||
@@ -548,17 +539,6 @@ struct foo : {
|
||||
class X { ... };</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">BOOST_NO_EXCEPTIONS</td>
|
||||
<td valign="top">Compiler</td>
|
||||
<td>The compiler does not support exception handling (this
|
||||
setting is typically required by many C++ compilers for
|
||||
embedded platforms). Note that there is no requirement
|
||||
for boost libraries to honor this configuration setting -
|
||||
indeed doing so may be impossible in some cases. Those
|
||||
libraries that do honor this will typically abort if a
|
||||
critical error occurs - you have been warned!</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS</td>
|
||||
<td valign="top" width="16%">Compiler</td>
|
||||
@@ -598,9 +578,7 @@ f(&bar); // should choose #2.</pre>
|
||||
<td valign="top" width="51%">BOOST_NO_LIMITS</td>
|
||||
<td valign="top" width="16%">Standard library</td>
|
||||
<td valign="top" width="33%">The C++ implementation does
|
||||
not provide the <limits> header. Never check for
|
||||
this symbol in library code; always include <boost/limits.hpp>,
|
||||
which guarantees to provide <code>std::numeric_limits</code>.</td>
|
||||
not provide the <limits> header.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS</td>
|
||||
@@ -757,11 +735,9 @@ f(&bar); // should choose #2.</pre>
|
||||
<td valign="top" width="51%">BOOST_NO_USING_TEMPLATE</td>
|
||||
<td valign="top" width="16%">Compiler</td>
|
||||
<td valign="top" width="33%">The compiler will not accept
|
||||
a using declaration that imports a template class or
|
||||
function from another namespace. Originally a Borland
|
||||
specific problem with imports to/from the global
|
||||
namespace, extended to MSVC6 which has a specific issue
|
||||
with importing template classes (but not functions).</td>
|
||||
a using declaration that imports a template from the
|
||||
global namespace into a named namespace. Probably Borland
|
||||
specific.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_VOID_RETURNS</td>
|
||||
@@ -795,33 +771,12 @@ present.</p>
|
||||
<td valign="top" width="37%">The platform supports BeOS
|
||||
style threads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_CLOCK_GETTIME</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API clock_gettime.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_FTIME</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the Win32 API
|
||||
GetSystemTimeAsFileTime.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_GETTIMEOFDAY</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API gettimeofday.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_HASH</td>
|
||||
<td valign="top" width="15%">Standard library</td>
|
||||
<td valign="top" width="37%">The C++ implementation
|
||||
provides the (SGI) hash_set or hash_map classes.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_LONG_LONG</td>
|
||||
<td>Compiler</td>
|
||||
<td>The compiler supports the long long data type.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_MACRO_USE_FACET</td>
|
||||
<td valign="top" width="15%">Standard library</td>
|
||||
@@ -830,60 +785,18 @@ present.</p>
|
||||
that does the job. This is primarily for the Dinkumware
|
||||
std lib.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_MS_INT64</td>
|
||||
<td>Compiler</td>
|
||||
<td>The compiler supports the __int64 data type.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_NANOSLEEP</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API nanosleep.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_NL_TYPES_H</td>
|
||||
<td valign="top" width="15%">Platform</td>
|
||||
<td valign="top" width="37%">The platform has an
|
||||
<nl_types.h>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_PTHREAD_DELAY_NP</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API pthread_delay_np.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API
|
||||
pthread_mutexattr_settype.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_PTHREAD_YIELD</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API pthread_yield.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_PTHREADS</td>
|
||||
<td valign="top" width="15%">Platform</td>
|
||||
<td valign="top" width="37%">The platform support POSIX
|
||||
style threads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_SCHED_YIELD</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API sched_yield.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_SGI_TYPE_TRAITS</td>
|
||||
<td>Compiler/standard library</td>
|
||||
<td>The compiler has native support for SGI style type
|
||||
traits.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_STDINT_H</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has a <stdint.h></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_SLIST</td>
|
||||
<td valign="top" width="15%">Standard library</td>
|
||||
|
||||
@@ -7,60 +7,32 @@
|
||||
|
||||
// Borland C++ compiler setup:
|
||||
|
||||
// Version 5.0 and below:
|
||||
# if __BORLANDC__ <= 0x0550
|
||||
// Borland C++Builder 4 and 5:
|
||||
// Borland C++ Builder 4 and 5:
|
||||
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
# if __BORLANDC__ == 0x0550
|
||||
// Borland C++Builder 5, command-line compiler 5.5:
|
||||
// Borland C++ Builder 5, command-line compiler 5.5:
|
||||
# define BOOST_NO_OPERATORS_IN_NAMESPACE
|
||||
# endif
|
||||
# endif
|
||||
|
||||
// Version 5.51 and below:
|
||||
#if (__BORLANDC__ <= 0x551)
|
||||
# define BOOST_NO_CV_SPECIALIZATIONS
|
||||
# define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
#endif
|
||||
|
||||
// Version 6.0 and below:
|
||||
#if (__BORLANDC__ <= 0x560) || !defined(BOOST_STRICT_CONFIG)
|
||||
# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# define BOOST_NO_USING_TEMPLATE
|
||||
// we shouldn't really need this - but too many things choke
|
||||
// without it, this needs more investigation:
|
||||
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
#endif
|
||||
|
||||
// Borland C++Builder 6 defaults to using STLPort. If _USE_OLD_RW_STL is
|
||||
// defined, then we have 0x560 or greater with the Rogue Wave implementation
|
||||
// which presumably has the std::DBL_MAX bug.
|
||||
#if ((__BORLANDC__ >= 0x550) && (__BORLANDC__ < 0x560)) || defined(_USE_OLD_RW_STL)
|
||||
// <climits> is partly broken, some macros define symbols that are really in
|
||||
#if (__BORLANDC__ >= 0x550)
|
||||
// <climits> is partly broken, some macos define symbols that are really in
|
||||
// namespace std, so you end up having to use illegal constructs like
|
||||
// std::DBL_MAX, as a fix we'll just include float.h and have done with:
|
||||
#include <float.h>
|
||||
#endif
|
||||
//
|
||||
// __int64:
|
||||
//
|
||||
#if __BORLANDC__ >= 0x530
|
||||
# define BOOST_HAS_MS_INT64
|
||||
|
||||
// Version 5.51:
|
||||
#if (__BORLANDC__ <= 0x551) || !defined(BOOST_STRICT_CONFIG)
|
||||
# define BOOST_NO_CV_SPECIALIZATIONS
|
||||
# define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# define BOOST_NO_USING_TEMPLATE
|
||||
#endif
|
||||
//
|
||||
// check for exception handling support:
|
||||
//
|
||||
#ifndef _CPPUNWIND
|
||||
# define BOOST_NO_EXCEPTIONS
|
||||
#endif
|
||||
//
|
||||
// Disable Win32 support in ANSI mode:
|
||||
//
|
||||
#pragma defineonoption BOOST_DISABLE_WIN32 -A
|
||||
|
||||
#define BOOST_COMPILER "Borland C++ version " BOOST_STRINGIZE(__BORLANDC__)
|
||||
|
||||
@@ -71,8 +43,8 @@
|
||||
# error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 5.6:
|
||||
#if (__BORLANDC__ > 0x560)
|
||||
// last known and checked version is 5.51:
|
||||
#if (__BORLANDC__ > 0x551)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# else
|
||||
|
||||
@@ -12,37 +12,9 @@
|
||||
#if (__COMO_VERSION__ <= 4245) || !defined(BOOST_STRICT_CONFIG)
|
||||
# if defined(_MSC_VER) && _MSC_VER <= 1300
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# if _MSC_VER > 100
|
||||
// only set this in non-strict mode:
|
||||
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
# endif
|
||||
# endif
|
||||
|
||||
// Void returns don't work when emulating VC 6 (Peter Dimov)
|
||||
|
||||
# if defined(_MSC_VER) && (_MSC_VER == 1200)
|
||||
# define BOOST_NO_VOID_RETURNS
|
||||
# endif
|
||||
|
||||
|
||||
#endif // version 4245
|
||||
|
||||
//
|
||||
// enable __int64 support in VC emulation mode
|
||||
// we should also set BOOST_HAS_LONG_LONG when that is
|
||||
// supported, but there is no way we can detect it:
|
||||
//
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1200)
|
||||
# define BOOST_HAS_MS_INT64
|
||||
# endif
|
||||
|
||||
//
|
||||
// disable win32 support unless we are in VC emulation mode,
|
||||
// (what does this do to Como on top of Borland?):
|
||||
//
|
||||
#if defined(_WIN32) && (_MSC_VER+0 < 1000)
|
||||
# define BOOST_DISABLE_WIN32
|
||||
#endif
|
||||
|
||||
#define BOOST_COMPILER "Comeau compiler version " BOOST_STRINGIZE(__COMO_VERSION__)
|
||||
|
||||
@@ -15,11 +15,8 @@
|
||||
#endif
|
||||
|
||||
#if (__EDG_VERSION__ <= 238)
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
#endif
|
||||
|
||||
#if (__EDG_VERSION__ <= 240)
|
||||
# define BOOST_NO_VOID_RETURNS
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
#endif
|
||||
|
||||
#if (__EDG_VERSION__ <= 241) && !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// GNU C++ compiler setup:
|
||||
|
||||
# if __GNUC__ == 2 && __GNUC_MINOR__ == 91
|
||||
// egcs 1.1 won't parse shared_ptr.hpp without this:
|
||||
// egcs 1.1 won't parse smart_ptr.hpp without this:
|
||||
# define BOOST_NO_AUTO_PTR
|
||||
# endif
|
||||
# if __GNUC__ == 2 && __GNUC_MINOR__ < 95
|
||||
@@ -49,8 +49,8 @@
|
||||
# error "Compiler not configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 3.1:
|
||||
#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 1))
|
||||
// last known and checked version is 3.0:
|
||||
#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 0))
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# else
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
|
||||
#if (BOOST_INTEL_CXX_VERSION <= 600) || !defined(BOOST_STRICT_CONFIG)
|
||||
|
||||
# if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
|
||||
|
||||
# if defined(_MSC_VER)
|
||||
// Intel C++ 5.0.1 uses EDG 2.45, but fails to activate Koenig lookup
|
||||
// in the frontend even in "strict" mode, unless you use
|
||||
// -Qoption,cpp,--arg_dep_lookup. (reported by Kirk Klobe & Thomas Witt)
|
||||
@@ -39,25 +38,13 @@
|
||||
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
# endif
|
||||
|
||||
// Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
|
||||
|
||||
# if defined(_MSC_VER) && (_MSC_VER <= 1200)
|
||||
# define BOOST_NO_VOID_RETURNS
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
#if _MSC_VER+0 >= 1000
|
||||
#ifdef _MSC_VER
|
||||
# ifndef _NATIVE_WCHAR_T_DEFINED
|
||||
# define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
# endif
|
||||
# if _MSC_VER >= 1200
|
||||
# define BOOST_HAS_MS_INT64
|
||||
# endif
|
||||
# define BOOST_NO_SWPRINTF
|
||||
#elif defined(_WIN32)
|
||||
# define BOOST_DISABLE_WIN32
|
||||
#endif
|
||||
|
||||
|
||||
@@ -68,12 +55,12 @@
|
||||
# error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 600:
|
||||
#if (BOOST_INTEL_CXX_VERSION > 600)
|
||||
// last known and checked version is 500:
|
||||
#if (BOOST_INTEL_CXX_VERSION > 500)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# elif defined(_MSC_VER)
|
||||
# pragma message("Unknown compiler version - please run the configure tests and report the results")
|
||||
# warning "Unknown compiler version - please run the configure tests and report the results"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -7,11 +7,6 @@
|
||||
|
||||
// Metrowerks C++ compiler setup:
|
||||
|
||||
// locale support is disabled when linking with the dynamic runtime
|
||||
# ifdef _MSL_NO_LOCALE
|
||||
# define BOOST_NO_STD_LOCALE
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ <= 0x2301 // 5.3
|
||||
# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
||||
# define BOOST_NO_POINTER_TO_MEMBER_CONST
|
||||
@@ -23,7 +18,7 @@
|
||||
//# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
||||
# endif
|
||||
|
||||
# if(__MWERKS__ <= 0x2406) || !defined(BOOST_STRICT_CONFIG) // 7.0 & 7.1
|
||||
# if(__MWERKS__ <= 0x2405) || !defined(BOOST_STRICT_CONFIG) // 7.0
|
||||
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
# endif
|
||||
|
||||
@@ -41,8 +36,8 @@
|
||||
# error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 0x2406:
|
||||
#if (__MWERKS__ > 0x2406)
|
||||
// last known and checked version is 0x2405:
|
||||
#if (__MWERKS__ > 0x2405)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# endif
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
|
||||
#include "boost/config/compiler/common_edg.hpp"
|
||||
|
||||
//
|
||||
// Threading support:
|
||||
// Turn this on unconditionally here, it will get turned off again later
|
||||
// if no threading API is detected.
|
||||
//
|
||||
#define BOOST_HAS_THREADS
|
||||
//
|
||||
// version check:
|
||||
// probably nothing to do here?
|
||||
|
||||
|
||||
@@ -21,26 +21,18 @@
|
||||
// wrong, especially where the value is computed
|
||||
// from other constants (J Maddock 6th May 2001)
|
||||
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG)
|
||||
// Although sunpro 5.2 supports the syntax for
|
||||
// partial specialization, it often seems to
|
||||
// bind to the wrong specialization. Better
|
||||
// to disable it until suppport becomes more stable
|
||||
// (J Maddock 6th May 2001).
|
||||
# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG)
|
||||
// SunPro 5.3 has better support for partial specialization,
|
||||
// but breaks when compiling std::less<shared_ptr<T> >
|
||||
// (Jens Maurer 4 Nov 2001).
|
||||
|
||||
// std::less specialization fixed as reported by George
|
||||
// Heintzelman; partial specialization re-enabled
|
||||
// (Peter Dimov 17 Jan 2002)
|
||||
|
||||
//# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
|
||||
# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
// integral constant expressions with 64 bit numbers fail
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
# endif
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// Visual Age (IBM) C++ compiler setup:
|
||||
|
||||
#define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
|
||||
//
|
||||
// On AIX thread support seems to be indicated by _THREAD_SAFE:
|
||||
//
|
||||
|
||||
@@ -10,26 +10,16 @@
|
||||
#define BOOST_MSVC _MSC_VER
|
||||
|
||||
// turn off the warnings before we #include anything
|
||||
#pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
|
||||
#pragma warning( disable : 4503 ) // warning: decorated name length exceeded
|
||||
|
||||
#if _MSC_VER <= 1200 // 1200 == VC++ 6.0
|
||||
#pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
|
||||
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
||||
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
||||
# define BOOST_NO_VOID_RETURNS
|
||||
// disable min/max macro defines on vc6:
|
||||
//
|
||||
# ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER <= 1300) // || !defined(BOOST_STRICT_CONFIG) // VC7 Beta 2 or later
|
||||
|
||||
#if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS) // VC7 bug with /Za
|
||||
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER <= 1300) || !defined(BOOST_STRICT_CONFIG) // VC7 Beta 2 or later
|
||||
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
@@ -47,6 +37,7 @@
|
||||
# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
||||
# define BOOST_NO_USING_TEMPLATE
|
||||
# define BOOST_NO_SWPRINTF
|
||||
//# define BOOST_NO_POINTER_TO_MEMBER_CONST
|
||||
//
|
||||
// disable min/max macros if defined:
|
||||
//
|
||||
@@ -56,39 +47,17 @@
|
||||
# ifdef max
|
||||
# undef max
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
#if _MSC_VER <= 1301
|
||||
# define BOOST_NO_SWPRINTF
|
||||
// disable min/max macro defines on vc6:
|
||||
//
|
||||
# ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef _NATIVE_WCHAR_T_DEFINED
|
||||
# define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
#endif
|
||||
|
||||
//
|
||||
// check for exception handling support:
|
||||
#ifndef _CPPUNWIND
|
||||
# define BOOST_NO_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
//
|
||||
// __int64 support:
|
||||
//
|
||||
#if (_MSC_VER >= 1200) && defined(_MSC_EXTENSIONS)
|
||||
# define BOOST_HAS_MS_INT64
|
||||
#endif
|
||||
//
|
||||
// disable Win32 API's if compiler extentions are
|
||||
// turned off:
|
||||
//
|
||||
#ifndef _MSC_EXTENSIONS
|
||||
# define BOOST_DISABLE_WIN32
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(_MSC_VER)
|
||||
|
||||
//
|
||||
@@ -98,14 +67,12 @@
|
||||
#error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 1301:
|
||||
#if (_MSC_VER > 1301)
|
||||
// last known and checked version is 1300:
|
||||
#if (_MSC_VER > 1300)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# else
|
||||
# pragma message("Unknown compiler version - please run the configure tests and report the results")
|
||||
# warning "Unknown compiler version - please run the configure tests and report the results"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
#define BOOST_PLATFORM "AmigaOS"
|
||||
|
||||
#define BOOST_DISABLE_THREADS
|
||||
#define BOOST_NO_CWCHAR
|
||||
#define BOOST_NO_STD_WSTRING
|
||||
#define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
|
||||
@@ -21,21 +21,13 @@
|
||||
|
||||
//
|
||||
// is this the correct version check?
|
||||
// FreeBSD has <nl_types.h> but does not
|
||||
// FreeBSD has <nl_type.h> but does not
|
||||
// advertise the fact in <unistd.h>:
|
||||
//
|
||||
#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
|
||||
#if defined(__FreeBSD__) && (__FreeBSD__ >= 4)
|
||||
# define BOOST_HAS_NL_TYPES_H
|
||||
#endif
|
||||
|
||||
//
|
||||
// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
|
||||
// and not in <unistd.h>
|
||||
//
|
||||
#if defined(__FreeBSD__) && (__FreeBSD__ <= 3)
|
||||
# define BOOST_HAS_PTHREADS
|
||||
#endif
|
||||
|
||||
//
|
||||
// No wide character support in the BSD header files:
|
||||
//
|
||||
|
||||
@@ -10,15 +10,8 @@
|
||||
#define BOOST_PLATFORM "SGI Irix"
|
||||
|
||||
#define BOOST_NO_SWPRINTF
|
||||
//
|
||||
// these are not auto detected by POSIX feature tests:
|
||||
//
|
||||
#define BOOST_HAS_GETTIMEOFDAY
|
||||
#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
|
||||
|
||||
// boilerplate code:
|
||||
#define BOOST_HAS_UNISTD_H
|
||||
#include <boost/config/posix_features.hpp>
|
||||
|
||||
|
||||
|
||||
@@ -25,13 +25,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// como on linux doesn't have std:: c functions:
|
||||
//
|
||||
#ifdef __COMO__
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
#endif
|
||||
|
||||
//
|
||||
// If glibc is past version 2 then we definitely have
|
||||
// gettimeofday, earlier versions may or may not have it:
|
||||
|
||||
@@ -39,21 +39,5 @@
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# endif
|
||||
|
||||
#else
|
||||
|
||||
// We will eventually support threads in non-Carbon builds, but we do
|
||||
// not support this yet.
|
||||
# if TARGET_CARBON
|
||||
|
||||
# define BOOST_HAS_MPTASKS
|
||||
|
||||
// The MP task implementation of Boost Threads aims to replace MP-unsafe
|
||||
// parts of the MSL, so we turn on threads unconditionally.
|
||||
# define BOOST_HAS_THREADS
|
||||
|
||||
// The remote call manager depends on this.
|
||||
# define BOOST_BIND_ENABLE_PASCAL
|
||||
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
# define BOOST_NO_SWPRINTF
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_DISABLE_WIN32
|
||||
//
|
||||
// Win32 will normally be using native Win32 threads,
|
||||
// but there is a pthread library avaliable as an option:
|
||||
@@ -35,5 +34,3 @@
|
||||
|
||||
// WEK: Added
|
||||
#define BOOST_HAS_FTIME
|
||||
|
||||
#endif
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE:
|
||||
// These are predicated on _XOPEN_VERSION, and appears to be first released
|
||||
// in issue 4, version 2 (_XOPEN_VERSION > 500).
|
||||
# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500)
|
||||
# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 > 500)
|
||||
# define BOOST_HAS_GETTIMEOFDAY
|
||||
# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
# endif
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
// GNU C++:
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
|
||||
|
||||
# elif defined __COMO__
|
||||
// Comeau C++
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
||||
|
||||
#elif defined __KCC
|
||||
// Kai C++
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
|
||||
@@ -62,6 +58,10 @@
|
||||
// IBM Visual Age
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
|
||||
|
||||
# elif defined __COMO__
|
||||
// Comeau C++
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
||||
|
||||
#elif defined _MSC_VER
|
||||
// Microsoft Visual C++
|
||||
//
|
||||
@@ -75,4 +75,3 @@
|
||||
# error "Unknown compiler - please configure and report the results to boost.org"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -52,10 +52,6 @@
|
||||
// IBM
|
||||
# define BOOST_PLATFORM_CONFIG "boost/config/platform/aix.hpp"
|
||||
|
||||
#elif defined(__amigaos__)
|
||||
// AmigaOS
|
||||
# define BOOST_PLATFORM_CONFIG "boost/config/platform/amigaos.hpp"
|
||||
|
||||
#else
|
||||
|
||||
# if defined(unix) \
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
// if this lib version is set up for vc6 then there is no std::use_facet:
|
||||
# define BOOST_NO_STD_USE_FACET
|
||||
# define BOOST_HAS_TWO_ARG_USE_FACET
|
||||
// C lib functions aren't in namespace std either:
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# endif
|
||||
// 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>,
|
||||
// and no <slist> at all
|
||||
@@ -55,7 +53,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1200) || !defined(_CPPLIB_VER) || _CPPLIB_VER < 306
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1200)
|
||||
// if we're using a dinkum lib that's
|
||||
// been configured for VC6 then there is
|
||||
// no iterator traits (true even for icl)
|
||||
|
||||
@@ -82,8 +82,6 @@
|
||||
# include <string>
|
||||
# if defined(__BASTRING__)
|
||||
# define BOOST_NO_LIMITS
|
||||
// Note: <boost/limits.hpp> will provide compile-time constants
|
||||
# undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
# define BOOST_NO_STD_WSTRING
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
// If the streams are not native, and we have a "using ::x" compiler bug
|
||||
// then the io stream facets are not available in namespace std::
|
||||
//
|
||||
#if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
|
||||
#if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
|
||||
# define BOOST_NO_STD_LOCALE
|
||||
#endif
|
||||
#if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
|
||||
#if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
|
||||
# define BOOST_NO_STD_LOCALE
|
||||
#endif
|
||||
|
||||
@@ -80,17 +80,10 @@
|
||||
// but doesn't always get them all, define BOOST_NO_STDC_NAMESPACE, since our
|
||||
// workaround does not conflict with STLports:
|
||||
//
|
||||
//
|
||||
// Harold Howe says:
|
||||
// Borland switched to STLport in BCB6. Defining BOOST_NO_STDC_NAMESPACE with
|
||||
// BCB6 does cause problems. If we detect BCB6, then don't define
|
||||
// BOOST_NO_STDC_NAMESPACE
|
||||
//
|
||||
#if !defined(__BORLANDC__) || (__BORLANDC__ < 0x560)
|
||||
# if defined(__STL_IMPORT_VENDOR_CSTD) || defined(__STL_USE_OWN_NAMESPACE) || defined(_STLP_IMPORT_VENDOR_CSTD) || defined(_STLP_USE_OWN_NAMESPACE)
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# endif
|
||||
#if defined(__STL_IMPORT_VENDOR_CSTD) || defined(__STL_USE_OWN_NAMESPACE) || defined(_STLP_IMPORT_VENDOR_CSTD) || defined(_STLP_USE_OWN_NAMESPACE)
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
#endif
|
||||
|
||||
//
|
||||
// std::reverse_iterate behaves like VC6's under some circumstances:
|
||||
//
|
||||
@@ -119,17 +112,8 @@
|
||||
# define BOOST_NO_CWTYPE
|
||||
#endif
|
||||
|
||||
//
|
||||
// Borland ships a version of STLport with C++ Builder 6 that lacks
|
||||
// hashtables and the like:
|
||||
//
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ == 0x560)
|
||||
# undef BOOST_HAS_HASH
|
||||
#endif
|
||||
|
||||
|
||||
#define BOOST_STDLIB "STLPort standard library version " BOOST_STRINGIZE(__SGI_STL_PORT)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -32,17 +32,6 @@
|
||||
&& (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))
|
||||
# define BOOST_HAS_LONG_LONG
|
||||
#endif
|
||||
#if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_INTEGRAL_INT64_T)
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
#endif
|
||||
|
||||
// GCC 3.x will clean up all of those nasty macro definitions that
|
||||
// BOOST_NO_CTYPE_FUNCTIONS is intended to help work around, so undefine
|
||||
// it under GCC 3.x.
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 3) && defined(BOOST_NO_CTYPE_FUNCTIONS)
|
||||
# undef BOOST_NO_CTYPE_FUNCTIONS
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Assume any extensions are in namespace std:: unless stated otherwise:
|
||||
@@ -133,16 +122,6 @@
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# endif
|
||||
|
||||
//
|
||||
// If Win32 support is turned off, then we must turn off
|
||||
// threading support also, unless there is some other
|
||||
// thread API enabled:
|
||||
//
|
||||
#if defined(BOOST_DISABLE_WIN32) && defined(_WIN32) \
|
||||
&& !defined(BOOST_DISABLE_THREADS) && !defined(BOOST_HAS_PTHREADS)
|
||||
# define BOOST_DISABLE_THREADS
|
||||
#endif
|
||||
|
||||
//
|
||||
// Turn on threading support if the compiler thinks that it's in
|
||||
// multithreaded mode. We put this here because there are only a
|
||||
@@ -165,8 +144,7 @@
|
||||
// Turn threading support off if we don't recognise the threading API:
|
||||
//
|
||||
#if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\
|
||||
&& !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)\
|
||||
&& !defined(BOOST_HAS_MPTASKS)
|
||||
&& !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)
|
||||
# undef BOOST_HAS_THREADS
|
||||
#endif
|
||||
|
||||
@@ -218,25 +196,12 @@ namespace std {
|
||||
return __a < __b ? __b : __a;
|
||||
}
|
||||
# ifdef BOOST_MSVC
|
||||
// Apparently, something in the Microsoft libraries requires the "long"
|
||||
// overload, because it calls the min/max functions with arguments of
|
||||
// slightly different type. (If this proves to be incorrect, this
|
||||
// whole "BOOST_MSVC" section can be removed.)
|
||||
inline long min(long __a, long __b) {
|
||||
return __b < __a ? __b : __a;
|
||||
}
|
||||
inline long max(long __a, long __b) {
|
||||
return __a < __b ? __b : __a;
|
||||
}
|
||||
// The "long double" overload is required, otherwise user code calling
|
||||
// min/max for floating-point numbers will use the "long" overload.
|
||||
// (SourceForge bug #495495)
|
||||
inline long double min(long double __a, long double __b) {
|
||||
return __b < __a ? __b : __a;
|
||||
}
|
||||
inline long double max(long double __a, long double __b) {
|
||||
return __a < __b ? __b : __a;
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
// boost/config/user.hpp ---------------------------------------------------//
|
||||
|
||||
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// (C) Copyright Boost.org 2001.
|
||||
// Do not check in modified versions of this file,
|
||||
// This file may be customized by the end user, but not by boost.
|
||||
|
||||
@@ -61,8 +55,4 @@
|
||||
// when available:
|
||||
// #define BOOST_DISABLE_THREADS
|
||||
|
||||
// define when you want to disable Win32 specific features
|
||||
// even when available:
|
||||
// #define BOOST_DISABLE_WIN32
|
||||
|
||||
|
||||
|
||||
@@ -92,16 +92,8 @@ enum float_denorm_style {
|
||||
static const __mem_type __mem_name = __mem_value
|
||||
#endif /* BOOST_NO_INCLASS_MEMBER_INITIALIZATION */
|
||||
|
||||
// Deal with min/max for MinGW
|
||||
#ifdef min
|
||||
# undef min
|
||||
#endif
|
||||
|
||||
#ifdef max
|
||||
# undef max
|
||||
#endif
|
||||
|
||||
// Base class for all specializations of numeric_limits.
|
||||
|
||||
template <class __number>
|
||||
class _Numeric_limits_base {
|
||||
public:
|
||||
@@ -345,17 +337,15 @@ class numeric_limits<unsigned long>
|
||||
// Some compilers have long long, but don't define the
|
||||
// LONGLONG_MIN and LONGLONG_MAX macros in limits.h. This
|
||||
// assumes that long long is 64 bits.
|
||||
#if !defined(LONGLONG_MAX) && !defined(ULONGLONG_MAX)
|
||||
#if !defined(LONGLONG_MIN) && !defined(LONGLONG_MAX) \
|
||||
&& !defined(ULONGLONG_MAX)
|
||||
|
||||
# define ULONGLONG_MAX 0xffffffffffffffffLLU
|
||||
# define LONGLONG_MAX 0x7fffffffffffffffLL
|
||||
#define ULONGLONG_MAX 0xffffffffffffffffLLU
|
||||
#define LONGLONG_MAX 0x7fffffffffffffffLL
|
||||
#define LONGLONG_MIN (-LONGLONG_MAX - 1)
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined(LONGLONG_MIN)
|
||||
# define LONGLONG_MIN (-LONGLONG_MAX - 1)
|
||||
#endif
|
||||
|
||||
template<>
|
||||
class numeric_limits<long long>
|
||||
: public _Integer_limits<long long, LONGLONG_MIN, LONGLONG_MAX>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// BOOST_VERSION / 100 % 1000 is the minor version
|
||||
// BOOST_VERSION / 100000 is the major version
|
||||
|
||||
#define BOOST_VERSION 102800
|
||||
#define BOOST_VERSION 102600
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// MACRO: BOOST_HAS_MS_INT64
|
||||
// TITLE: __int64
|
||||
// DESCRIPTION: The platform supports Microsoft style __int64.
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
namespace boost_has_ms_int64{
|
||||
|
||||
int test()
|
||||
{
|
||||
__int64 lli = 0i64;
|
||||
unsigned __int64 ulli = 0ui64;
|
||||
(void)lli;
|
||||
(void)ulli;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// MACRO: BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
// TITLE: pthread_mutexattr_settype
|
||||
// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_settype.
|
||||
// TITLE: pthread_mutexattr_gettype
|
||||
// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_gettype.
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -17,8 +17,8 @@ void f()
|
||||
// this is never called, it just has to compile:
|
||||
pthread_mutexattr_t attr;
|
||||
pthread_mutexattr_init(&attr);
|
||||
int type = 0;
|
||||
pthread_mutexattr_settype(&attr, type);
|
||||
int type;
|
||||
pthread_mutexattr_gettype(&attr, &type);
|
||||
}
|
||||
|
||||
int test()
|
||||
@@ -24,9 +24,6 @@ int test()
|
||||
typedef ::__type_traits<char>::has_trivial_default_constructor tdc;
|
||||
typedef ::__type_traits<foo_type>::is_POD_type isp;
|
||||
|
||||
(void) &t; // avoid "unused variable" warnings
|
||||
(void) &f;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// MACRO: BOOST_NO_EXCEPTIONS
|
||||
// TITLE: exception handling support
|
||||
// DESCRIPTION: The compiler in its current translation mode supports
|
||||
// exception handling.
|
||||
|
||||
|
||||
namespace boost_no_exceptions{
|
||||
|
||||
void throw_it(int i)
|
||||
{
|
||||
throw i;
|
||||
}
|
||||
|
||||
int test()
|
||||
{
|
||||
try
|
||||
{
|
||||
throw_it(2);
|
||||
}
|
||||
catch(int i)
|
||||
{
|
||||
return (i == 2) ? 0 : -1;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ struct t
|
||||
private:
|
||||
void foo(){ i = j; }
|
||||
public:
|
||||
void uncallable(); // silences warning from GCC
|
||||
int i;
|
||||
int j;
|
||||
};
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
// MACRO: BOOST_NO_USING_TEMPLATE
|
||||
// TITLE: using template declarations
|
||||
// DESCRIPTION: The compiler will not accept a using declaration
|
||||
// that imports a class or function template
|
||||
// into a named namespace. Probably Borland/MSVC6 specific.
|
||||
// that imports a template from the global namespace
|
||||
// into a named namespace. Probably Borland specific.
|
||||
|
||||
template <class T>
|
||||
int global_foo(T)
|
||||
@@ -41,4 +41,3 @@ int test()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ void print_compiler_macros()
|
||||
PRINT_MACRO(__FUNC__);
|
||||
PRINT_MACRO(_M_IX86);
|
||||
PRINT_MACRO(__MSDOS__);
|
||||
PRINT_MACRO(__MT__ );
|
||||
PRINT_MACRO(__MT__ );
|
||||
PRINT_MACRO(__PASCAL__);
|
||||
PRINT_MACRO(__STDC__);
|
||||
PRINT_MACRO(__TLS__);
|
||||
@@ -822,8 +822,6 @@ void print_boost_macros()
|
||||
{
|
||||
std::cout << "Boost version " << BOOST_STRINGIZE(BOOST_VERSION) << std::endl;
|
||||
PRINT_MACRO(BOOST_DECL);
|
||||
PRINT_MACRO(BOOST_DISABLE_THREADS);
|
||||
PRINT_MACRO(BOOST_DISABLE_WIN32);
|
||||
PRINT_MACRO(BOOST_HAS_BETHREADS);
|
||||
PRINT_MACRO(BOOST_HAS_CLOCK_GETTIME);
|
||||
PRINT_MACRO(BOOST_HAS_FTIME);
|
||||
@@ -831,7 +829,6 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_HAS_HASH);
|
||||
PRINT_MACRO(BOOST_HAS_LONG_LONG);
|
||||
PRINT_MACRO(BOOST_HAS_MACRO_USE_FACET);
|
||||
PRINT_MACRO(BOOST_HAS_MS_INT64);
|
||||
PRINT_MACRO(BOOST_HAS_NANOSLEEP);
|
||||
PRINT_MACRO(BOOST_HAS_NL_TYPES_H);
|
||||
PRINT_MACRO(BOOST_HAS_PTHREAD_DELAY_NP);
|
||||
@@ -860,7 +857,6 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_CWCTYPE);
|
||||
PRINT_MACRO(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS);
|
||||
PRINT_MACRO(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS);
|
||||
PRINT_MACRO(BOOST_NO_EXCEPTIONS);
|
||||
PRINT_MACRO(BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS);
|
||||
PRINT_MACRO(BOOST_NO_FUNCTION_TEMPLATE_ORDERING);
|
||||
PRINT_MACRO(BOOST_NO_HASH);
|
||||
@@ -878,20 +874,18 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_PRIVATE_IN_AGGREGATE);
|
||||
PRINT_MACRO(BOOST_NO_SLIST);
|
||||
PRINT_MACRO(BOOST_NO_STD_ALLOCATOR);
|
||||
PRINT_MACRO(BOOST_NO_STD_DISTANCE);
|
||||
PRINT_MACRO(BOOST_NO_STD_ITERATOR);
|
||||
PRINT_MACRO(BOOST_NO_STD_ITERATOR_TRAITS);
|
||||
PRINT_MACRO(BOOST_NO_STD_LOCALE);
|
||||
PRINT_MACRO(BOOST_NO_STD_MESSAGES);
|
||||
PRINT_MACRO(BOOST_NO_STD_MIN_MAX);
|
||||
PRINT_MACRO(BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN);
|
||||
PRINT_MACRO(BOOST_NO_STD_USE_FACET);
|
||||
PRINT_MACRO(BOOST_NO_STD_WSTRING);
|
||||
PRINT_MACRO(BOOST_NO_STDC_NAMESPACE);
|
||||
PRINT_MACRO(BOOST_NO_STRINGSTREAM);
|
||||
PRINT_MACRO(BOOST_NO_SWPRINTF);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS);
|
||||
PRINT_MACRO(BOOST_DISABLE_THREADS);
|
||||
PRINT_MACRO(BOOST_NO_USING_TEMPLATE);
|
||||
PRINT_MACRO(BOOST_NO_VOID_RETURNS);
|
||||
PRINT_MACRO(BOOST_STD_EXTENSION_NAMESPACE);
|
||||
@@ -920,5 +914,3 @@ int main()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_*.cxx on
|
||||
// Mon May 6 12:58:50 BST 2002
|
||||
// Wed Oct 31 12:19:39 2001
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#define BOOST_INCLUDE_MAIN
|
||||
@@ -62,11 +62,6 @@ namespace boost_no_dependent_nested_derivations = empty_boost;
|
||||
#else
|
||||
namespace boost_no_dependent_types_in_template_value_parameters = 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
|
||||
@@ -273,7 +268,7 @@ namespace boost_has_nl_types_h = empty_boost;
|
||||
namespace boost_has_pthread_delay_np = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
#include "boost_has_pthread_ma_st.cxx"
|
||||
#include "boost_has_pthread_ma_gt.cxx"
|
||||
#else
|
||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||
#endif
|
||||
@@ -335,69 +330,67 @@ namespace boost_has_winthreads = empty_boost;
|
||||
|
||||
int test_main( int, char *[] )
|
||||
{
|
||||
BOOST_TEST(0 == boost_no_intrinsic_wchar_t::test());
|
||||
BOOST_TEST(0 == boost_no_void_returns::test());
|
||||
BOOST_TEST(0 == boost_no_using_template::test());
|
||||
BOOST_TEST(0 == boost_no_swprintf::test());
|
||||
BOOST_TEST(0 == boost_no_stdc_namespace::test());
|
||||
BOOST_TEST(0 == boost_no_std_wstring::test());
|
||||
BOOST_TEST(0 == boost_no_std_use_facet::test());
|
||||
BOOST_TEST(0 == boost_no_std_output_iterator_assign::test());
|
||||
BOOST_TEST(0 == boost_no_std_min_max::test());
|
||||
BOOST_TEST(0 == boost_no_std_messages::test());
|
||||
BOOST_TEST(0 == boost_no_std_locale::test());
|
||||
BOOST_TEST(0 == boost_no_std_iterator::test());
|
||||
BOOST_TEST(0 == boost_no_std_iterator_traits::test());
|
||||
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_pointer_to_member_const::test());
|
||||
BOOST_TEST(0 == boost_no_private_in_aggregate::test());
|
||||
BOOST_TEST(0 == boost_no_template_partial_specialization::test());
|
||||
BOOST_TEST(0 == boost_no_operators_in_namespace::test());
|
||||
BOOST_TEST(0 == boost_no_member_templates::test());
|
||||
BOOST_TEST(0 == boost_no_member_template_friends::test());
|
||||
BOOST_TEST(0 == boost_no_member_template_keyword::test());
|
||||
BOOST_TEST(0 == boost_no_limits_compile_time_constants::test());
|
||||
BOOST_TEST(0 == boost_no_limits::test());
|
||||
BOOST_TEST(0 == boost_no_templated_iterator_constructors::test());
|
||||
BOOST_TEST(0 == boost_no_integral_int64_t::test());
|
||||
BOOST_TEST(0 == boost_no_inclass_member_initialization::test());
|
||||
BOOST_TEST(0 == boost_no_function_template_ordering::test());
|
||||
BOOST_TEST(0 == boost_no_explicit_function_template_arguments::test());
|
||||
BOOST_TEST(0 == boost_no_exceptions::test());
|
||||
BOOST_TEST(0 == boost_no_dependent_types_in_template_value_parameters::test());
|
||||
BOOST_TEST(0 == boost_no_dependent_nested_derivations::test());
|
||||
BOOST_TEST(0 == boost_no_cwctype::test());
|
||||
BOOST_TEST(0 == boost_no_cwchar::test());
|
||||
BOOST_TEST(0 == boost_no_cv_void_specializations::test());
|
||||
BOOST_TEST(0 == boost_no_cv_specializations::test());
|
||||
BOOST_TEST(0 == boost_no_ctype_functions::test());
|
||||
BOOST_TEST(0 == boost_no_auto_ptr::test());
|
||||
BOOST_TEST(0 == boost_no_argument_dependent_lookup::test());
|
||||
BOOST_TEST(0 == boost_has_winthreads::test());
|
||||
BOOST_TEST(0 == boost_msvc_std_iterator::test());
|
||||
BOOST_TEST(0 == boost_msvc6_member_templates::test());
|
||||
BOOST_TEST(0 == boost_has_unistd_h::test());
|
||||
BOOST_TEST(0 == boost_has_stlp_use_facet::test());
|
||||
BOOST_TEST(0 == boost_has_stdint_h::test());
|
||||
BOOST_TEST(0 == boost_has_slist::test());
|
||||
BOOST_TEST(0 == boost_has_sgi_type_traits::test());
|
||||
BOOST_TEST(0 == boost_has_sched_yield::test());
|
||||
BOOST_TEST(0 == boost_has_pthreads::test());
|
||||
BOOST_TEST(0 == boost_has_pthread_yield::test());
|
||||
BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test());
|
||||
BOOST_TEST(0 == boost_has_pthread_delay_np::test());
|
||||
BOOST_TEST(0 == boost_has_nl_types_h::test());
|
||||
BOOST_TEST(0 == boost_has_nanosleep::test());
|
||||
BOOST_TEST(0 == boost_has_macro_use_facet::test());
|
||||
BOOST_TEST(0 == boost_has_long_long::test());
|
||||
BOOST_TEST(0 == boost_has_hash::test());
|
||||
BOOST_TEST(0 == boost_has_gettimeofday::test());
|
||||
BOOST_TEST(0 == boost_has_ftime::test());
|
||||
BOOST_TEST(0 == boost_has_clock_gettime::test());
|
||||
BOOST_TEST(0 == boost_has_bethreads::test());
|
||||
BOOST_TEST(0 == boost_has_two_arg_use_facet::test());
|
||||
return 0;
|
||||
BOOST_TEST(0 == boost_no_intrinsic_wchar_t::test());
|
||||
BOOST_TEST(0 == boost_no_void_returns::test());
|
||||
BOOST_TEST(0 == boost_no_using_template::test());
|
||||
BOOST_TEST(0 == boost_no_swprintf::test());
|
||||
BOOST_TEST(0 == boost_no_stdc_namespace::test());
|
||||
BOOST_TEST(0 == boost_no_std_wstring::test());
|
||||
BOOST_TEST(0 == boost_no_std_use_facet::test());
|
||||
BOOST_TEST(0 == boost_no_std_output_iterator_assign::test());
|
||||
BOOST_TEST(0 == boost_no_std_min_max::test());
|
||||
BOOST_TEST(0 == boost_no_std_messages::test());
|
||||
BOOST_TEST(0 == boost_no_std_locale::test());
|
||||
BOOST_TEST(0 == boost_no_std_iterator::test());
|
||||
BOOST_TEST(0 == boost_no_std_iterator_traits::test());
|
||||
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_pointer_to_member_const::test());
|
||||
BOOST_TEST(0 == boost_no_private_in_aggregate::test());
|
||||
BOOST_TEST(0 == boost_no_template_partial_specialization::test());
|
||||
BOOST_TEST(0 == boost_no_operators_in_namespace::test());
|
||||
BOOST_TEST(0 == boost_no_member_templates::test());
|
||||
BOOST_TEST(0 == boost_no_member_template_friends::test());
|
||||
BOOST_TEST(0 == boost_no_member_template_keyword::test());
|
||||
BOOST_TEST(0 == boost_no_limits_compile_time_constants::test());
|
||||
BOOST_TEST(0 == boost_no_limits::test());
|
||||
BOOST_TEST(0 == boost_no_templated_iterator_constructors::test());
|
||||
BOOST_TEST(0 == boost_no_integral_int64_t::test());
|
||||
BOOST_TEST(0 == boost_no_inclass_member_initialization::test());
|
||||
BOOST_TEST(0 == boost_no_function_template_ordering::test());
|
||||
BOOST_TEST(0 == boost_no_explicit_function_template_arguments::test());
|
||||
BOOST_TEST(0 == boost_no_dependent_types_in_template_value_parameters::test());
|
||||
BOOST_TEST(0 == boost_no_dependent_nested_derivations::test());
|
||||
BOOST_TEST(0 == boost_no_cwctype::test());
|
||||
BOOST_TEST(0 == boost_no_cwchar::test());
|
||||
BOOST_TEST(0 == boost_no_cv_void_specializations::test());
|
||||
BOOST_TEST(0 == boost_no_cv_specializations::test());
|
||||
BOOST_TEST(0 == boost_no_ctype_functions::test());
|
||||
BOOST_TEST(0 == boost_no_auto_ptr::test());
|
||||
BOOST_TEST(0 == boost_no_argument_dependent_lookup::test());
|
||||
BOOST_TEST(0 == boost_has_winthreads::test());
|
||||
BOOST_TEST(0 == boost_msvc_std_iterator::test());
|
||||
BOOST_TEST(0 == boost_msvc6_member_templates::test());
|
||||
BOOST_TEST(0 == boost_has_unistd_h::test());
|
||||
BOOST_TEST(0 == boost_has_stlp_use_facet::test());
|
||||
BOOST_TEST(0 == boost_has_stdint_h::test());
|
||||
BOOST_TEST(0 == boost_has_slist::test());
|
||||
BOOST_TEST(0 == boost_has_sgi_type_traits::test());
|
||||
BOOST_TEST(0 == boost_has_sched_yield::test());
|
||||
BOOST_TEST(0 == boost_has_pthreads::test());
|
||||
BOOST_TEST(0 == boost_has_pthread_yield::test());
|
||||
BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test());
|
||||
BOOST_TEST(0 == boost_has_pthread_delay_np::test());
|
||||
BOOST_TEST(0 == boost_has_nl_types_h::test());
|
||||
BOOST_TEST(0 == boost_has_nanosleep::test());
|
||||
BOOST_TEST(0 == boost_has_macro_use_facet::test());
|
||||
BOOST_TEST(0 == boost_has_long_long::test());
|
||||
BOOST_TEST(0 == boost_has_hash::test());
|
||||
BOOST_TEST(0 == boost_has_gettimeofday::test());
|
||||
BOOST_TEST(0 == boost_has_ftime::test());
|
||||
BOOST_TEST(0 == boost_has_clock_gettime::test());
|
||||
BOOST_TEST(0 == boost_has_bethreads::test());
|
||||
BOOST_TEST(0 == boost_has_two_arg_use_facet::test());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_two_arg_use_facet::test();
|
||||
}
|
||||
|
||||
return boost_has_two_arg_use_facet::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_two_arg_use_facet = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_two_arg_use_facet::test();
|
||||
}
|
||||
|
||||
return boost_has_two_arg_use_facet::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_bethreads::test();
|
||||
}
|
||||
|
||||
return boost_has_bethreads::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_bethreads = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_bethreads::test();
|
||||
}
|
||||
|
||||
return boost_has_bethreads::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_clock_gettime::test();
|
||||
}
|
||||
|
||||
return boost_has_clock_gettime::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_clock_gettime = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_clock_gettime::test();
|
||||
}
|
||||
|
||||
return boost_has_clock_gettime::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_ftime::test();
|
||||
}
|
||||
|
||||
return boost_has_ftime::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_ftime = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_ftime::test();
|
||||
}
|
||||
|
||||
return boost_has_ftime::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_gettimeofday::test();
|
||||
}
|
||||
|
||||
return boost_has_gettimeofday::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_gettimeofday = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_gettimeofday::test();
|
||||
}
|
||||
|
||||
return boost_has_gettimeofday::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_hash::test();
|
||||
}
|
||||
|
||||
return boost_has_hash::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_hash = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_hash::test();
|
||||
}
|
||||
|
||||
return boost_has_hash::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_long_long::test();
|
||||
}
|
||||
|
||||
return boost_has_long_long::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_long_long = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_long_long::test();
|
||||
}
|
||||
|
||||
return boost_has_long_long::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_macro_use_facet::test();
|
||||
}
|
||||
|
||||
return boost_has_macro_use_facet::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_macro_use_facet = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_macro_use_facet::test();
|
||||
}
|
||||
|
||||
return boost_has_macro_use_facet::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_HAS_MS_INT64
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_HAS_MS_INT64 may be defined.
|
||||
// see boost_has_ms_int64.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_has_ms_int64.cxx on
|
||||
// Mon May 6 12:26:03 2002
|
||||
|
||||
// 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 <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_ms_int64::test();
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_HAS_MS_INT64
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_HAS_MS_INT64 should not be defined.
|
||||
// see boost_has_ms_int64.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_has_ms_int64.cxx on
|
||||
// Mon May 6 12:26:03 2002
|
||||
|
||||
// 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 <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.cxx"
|
||||
#else
|
||||
namespace boost_has_ms_int64 = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_ms_int64::test();
|
||||
}
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_nanosleep::test();
|
||||
}
|
||||
|
||||
return boost_has_nanosleep::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_nanosleep = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_nanosleep::test();
|
||||
}
|
||||
|
||||
return boost_has_nanosleep::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_nl_types_h::test();
|
||||
}
|
||||
|
||||
return boost_has_nl_types_h::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_nl_types_h = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_nl_types_h::test();
|
||||
}
|
||||
|
||||
return boost_has_nl_types_h::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthread_delay_np::test();
|
||||
}
|
||||
|
||||
return boost_has_pthread_delay_np::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_pthread_delay_np = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthread_delay_np::test();
|
||||
}
|
||||
|
||||
return boost_has_pthread_delay_np::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE may be defined.
|
||||
// see boost_has_pthread_ma_st.cxx for more details
|
||||
// see boost_has_pthread_ma_gt.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_has_pthread_ma_st.cxx on
|
||||
// Tue Jan 29 08:44:30 EST 2002
|
||||
// ../tools/generate from boost_has_pthread_ma_gt.cxx on
|
||||
// Thu Oct 11 12:24:39 2001
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
@@ -24,13 +24,13 @@
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
#include "boost_has_pthread_ma_st.cxx"
|
||||
#include "boost_has_pthread_ma_gt.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthread_mutexattr_settype::test();
|
||||
}
|
||||
|
||||
return boost_has_pthread_mutexattr_settype::test();
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE should not be defined.
|
||||
// see boost_has_pthread_ma_st.cxx for more details
|
||||
// see boost_has_pthread_ma_gt.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_has_pthread_ma_st.cxx on
|
||||
// Tue Jan 29 08:44:30 EST 2002
|
||||
// ../tools/generate from boost_has_pthread_ma_gt.cxx on
|
||||
// Thu Oct 11 12:24:39 2001
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
@@ -24,13 +24,13 @@
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
#include "boost_has_pthread_ma_st.cxx"
|
||||
#include "boost_has_pthread_ma_gt.cxx"
|
||||
#else
|
||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthread_mutexattr_settype::test();
|
||||
}
|
||||
|
||||
return boost_has_pthread_mutexattr_settype::test();
|
||||
}
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthread_yield::test();
|
||||
}
|
||||
|
||||
return boost_has_pthread_yield::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_pthread_yield = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthread_yield::test();
|
||||
}
|
||||
|
||||
return boost_has_pthread_yield::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthreads::test();
|
||||
}
|
||||
|
||||
return boost_has_pthreads::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_pthreads = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_pthreads::test();
|
||||
}
|
||||
|
||||
return boost_has_pthreads::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_sched_yield::test();
|
||||
}
|
||||
|
||||
return boost_has_sched_yield::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_sched_yield = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_sched_yield::test();
|
||||
}
|
||||
|
||||
return boost_has_sched_yield::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_sgi_type_traits::test();
|
||||
}
|
||||
|
||||
return boost_has_sgi_type_traits::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_sgi_type_traits = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_sgi_type_traits::test();
|
||||
}
|
||||
|
||||
return boost_has_sgi_type_traits::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_slist::test();
|
||||
}
|
||||
|
||||
return boost_has_slist::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_slist = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_slist::test();
|
||||
}
|
||||
|
||||
return boost_has_slist::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_stdint_h::test();
|
||||
}
|
||||
|
||||
return boost_has_stdint_h::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_stdint_h = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_stdint_h::test();
|
||||
}
|
||||
|
||||
return boost_has_stdint_h::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_stlp_use_facet::test();
|
||||
}
|
||||
|
||||
return boost_has_stlp_use_facet::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_stlp_use_facet = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_stlp_use_facet::test();
|
||||
}
|
||||
|
||||
return boost_has_stlp_use_facet::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_unistd_h::test();
|
||||
}
|
||||
|
||||
return boost_has_unistd_h::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_unistd_h = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_unistd_h::test();
|
||||
}
|
||||
|
||||
return boost_has_unistd_h::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_msvc6_member_templates::test();
|
||||
}
|
||||
|
||||
return boost_msvc6_member_templates::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_msvc6_member_templates = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_msvc6_member_templates::test();
|
||||
}
|
||||
|
||||
return boost_msvc6_member_templates::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_msvc_std_iterator::test();
|
||||
}
|
||||
|
||||
return boost_msvc_std_iterator::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_msvc_std_iterator = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_msvc_std_iterator::test();
|
||||
}
|
||||
|
||||
return boost_msvc_std_iterator::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_winthreads::test();
|
||||
}
|
||||
|
||||
return boost_has_winthreads::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_has_winthreads = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_winthreads::test();
|
||||
}
|
||||
|
||||
return boost_has_winthreads::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -27,20 +27,11 @@
|
||||
*
|
||||
* Therefore, avoid explicit function template instantiations.
|
||||
*/
|
||||
#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1200)
|
||||
template<typename T> inline T make_char_numeric_for_streaming(T x) { return x; }
|
||||
namespace fix{
|
||||
inline int make_char_numeric_for_streaming(char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(signed char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(unsigned char c) { return c; }
|
||||
}
|
||||
using namespace fix;
|
||||
#else
|
||||
|
||||
template<typename T> inline T make_char_numeric_for_streaming(T x) { return x; }
|
||||
inline int make_char_numeric_for_streaming(char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(signed char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(unsigned char c) { return c; }
|
||||
#endif
|
||||
|
||||
template<class T>
|
||||
void test_integral_limits(const T &, const char * msg)
|
||||
@@ -87,11 +78,11 @@ void test_float_limits(const T &, const char * msg)
|
||||
const T snan = lim::signaling_NaN();
|
||||
|
||||
std::cout << "IEEE-compatible: " << lim::is_iec559
|
||||
<< ", traps: " << lim::traps
|
||||
<< ", bounded: " << lim::is_bounded
|
||||
<< ", exact: " << lim::is_exact << '\n'
|
||||
<< "min: " << lim::min() << ", max: " << lim::max() << '\n'
|
||||
<< "infinity: " << infinity << ", QNaN: " << qnan << '\n';
|
||||
<< ", traps: " << lim::traps
|
||||
<< ", bounded: " << lim::is_bounded
|
||||
<< ", exact: " << lim::is_exact << '\n'
|
||||
<< "min: " << lim::min() << ", max: " << lim::max() << '\n'
|
||||
<< "infinity: " << infinity << ", QNaN: " << qnan << '\n';
|
||||
print_hex_val(lim::max(), "max");
|
||||
print_hex_val(infinity, "infinity");
|
||||
print_hex_val(qnan, "qnan");
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_argument_dependent_lookup::test();
|
||||
}
|
||||
|
||||
return boost_no_argument_dependent_lookup::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_argument_dependent_lookup = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_argument_dependent_lookup::test();
|
||||
}
|
||||
|
||||
return boost_no_argument_dependent_lookup::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_auto_ptr::test();
|
||||
}
|
||||
|
||||
return boost_no_auto_ptr::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_auto_ptr = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_auto_ptr::test();
|
||||
}
|
||||
|
||||
return boost_no_auto_ptr::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_ctype_functions::test();
|
||||
}
|
||||
|
||||
return boost_no_ctype_functions::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_ctype_functions = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_ctype_functions::test();
|
||||
}
|
||||
|
||||
return boost_no_ctype_functions::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cv_specializations::test();
|
||||
}
|
||||
|
||||
return boost_no_cv_specializations::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_cv_specializations = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cv_specializations::test();
|
||||
}
|
||||
|
||||
return boost_no_cv_specializations::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cv_void_specializations::test();
|
||||
}
|
||||
|
||||
return boost_no_cv_void_specializations::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_cv_void_specializations = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cv_void_specializations::test();
|
||||
}
|
||||
|
||||
return boost_no_cv_void_specializations::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cwchar::test();
|
||||
}
|
||||
|
||||
return boost_no_cwchar::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_cwchar = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cwchar::test();
|
||||
}
|
||||
|
||||
return boost_no_cwchar::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cwctype::test();
|
||||
}
|
||||
|
||||
return boost_no_cwctype::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace boost_no_cwctype = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_cwctype::test();
|
||||
}
|
||||
|
||||
return boost_no_cwctype::test();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_dependent_nested_derivations::test();
|
||||
}
|
||||
|
||||
return boost_no_dependent_nested_derivations::test();
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user