]> git.lyx.org Git - lyx.git/blob - boost/boost/config.hpp
various changes
[lyx.git] / boost / boost / config.hpp
1 //  Boost config.hpp configuration header file  ------------------------------//
2
3 //  (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
4 //  distribute this software is granted provided this copyright notice appears
5 //  in all copies. This software is provided "as is" without express or implied
6 //  warranty, and with no claim as to its suitability for any purpose.
7
8 //  See http://www.boost.org for most recent version.
9
10 //  Boost config.hpp policy and rationale documentation has been moved to
11 //  http://www.boost.org/libs/config
12
13 //  Revision History (excluding minor changes for specific compilers)
14 //   29 Mar 01  BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS (Daryle Walker)
15 //   16 Mar 01  Added BOOST_VERSION (Jens Maurer)
16 //   06 Mar 01  Refactored EDG checks for Intel C++ (Dave Abrahams)
17 //   04 Mar 01  Factored EDG checks, added BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
18 //              for Intel C++ 5.0 (Dave Abrahams)
19 //   17 Feb 01  BOOST_NO_CV_SPECIALIZATIONS
20 //              BOOST_NO_CV_VOID_SPECIALIZATIONS (John Maddock)
21 //   11 Feb 01  Added BOOST_STATIC_CONSTANT (Dave Abrahams)
22 //   20 Jan 01  BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS moved here from
23 //              cast.hpp. Added missing BOOST_NO_STRINGSTREAM which some
24 //              boost code seemed to depend on. (Dave Abrahams)
25 //   13 Jan 01  SGI MIPSpro and Compaq Tru64 Unix compiler support added
26 //              (Jens Maurer)
27 //   13 Jan 01  BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP (Jens Maurer)
28 //   17 Nov 00  BOOST_NO_AUTO_PTR (John Maddock)
29 //    4 Oct 00  BOOST_NO_STD_MIN_MAX (Jeremy Siek)
30 //   29 Sep 00  BOOST_NO_INTEGRAL_INT64_T (Jens Maurer)
31 //   25 Sep 00  BOOST_NO_STD_ALLOCATOR (Jeremy Siek)
32 //   18 SEP 00  BOOST_NO_SLIST, BOOST_NO_HASH, 
33 //              BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
34 //              BOOST_NO_LIMITS (Jeremy Siek)
35 //    1 Sep 00  BOOST_NO_PRIVATE_IN_AGGREGATE added. (Mark Rodgers)
36 //   23 Jul 00  Fixed spelling of BOOST_NO_INCLASS_MEMBER_INITIALIZATION in
37 //              comment (Dave Abrahams). 
38 //   10 Jul 00  BOOST_NO_POINTER_TO_MEMBER_CONST added (Mark Rodgers)
39 //   26 Jun 00  BOOST_NO_STD_ITERATOR, BOOST_MSVC_STD_ITERATOR,
40 //              BOOST_NO_STD_ITERATOR_TRAITS, BOOST_NO_USING_TEMPLATE,
41 //              added (Jeremy Siek)
42 //   20 Jun 00  BOOST_MSVC added (Aleksey Gurtovoy)
43 //   14 Jun 00  BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS (Jens M.)
44 //   22 Mar 00  BOOST_MSVC6_MEMBER_TEMPLATES added (Dave Abrahams)
45 //   18 Feb 00  BOOST_NO_INCLASS_MEMBER_INITIALIZATION added (Jens Maurer)
46 //   26 Jan 00  Borland compiler support added (John Maddock)
47 //   26 Jan 00  Sun compiler support added (Jörg Schaible)
48 //   30 Dec 99  BOOST_NMEMBER_TEMPLATES compatibility moved here from
49 //              smart_ptr.hpp. (Dave Abrahams)
50 //   15 Nov 99  BOOST_NO_OPERATORS_IN_NAMESPACE,
51 //              BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION added (Beman Dawes)
52 //   11 Oct 99  BOOST_NO_STDC_NAMESPACE refined; <cstddef> supplied
53 //   29 Sep 99  BOOST_NO_STDC_NAMESPACE added (Ed Brey)
54 //   24 Sep 99  BOOST_DECL added (Ed Brey)
55 //   10 Aug 99  Endedness flags added, GNU CC support added
56 //   22 Jul 99  Initial version
57  
58
59 #ifndef BOOST_CONFIG_HPP
60 #define BOOST_CONFIG_HPP
61
62 #define BOOST_VERSION 102200
63
64 //  BOOST_VERSION % 100 is the sub-minor version
65 //  BOOST_VERSION / 100 % 1000 is the minor version
66 //  BOOST_VERSION / 100000 is the major version
67
68
69 //  Conformance Flag Macros  -------------------------------------------------//
70 //
71 //  Conformance flag macros should identify the absence of C++ Standard 
72 //  conformance rather than its presence.  This ensures that standard conforming
73 //  compilers do not require a lot of configuration flag macros.  It places the
74 //  burden where it should be, on non-conforming compilers.  In the future,
75 //  hopefully, less rather than more conformance flags will have to be defined.
76
77 //  BOOST_NO_CV_SPECIALIZATIONS: if template specialisations for cv-qualified types
78 //  conflict with a specialistaion for unqualififed type.
79
80 //  BOOST_NO_CV_VOID_SPECIALIZATIONS: if template specialisations for cv-void types
81 //  conflict with a specialistaion for void.
82
83 //  BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP: Compiler does not implement
84 //  argument-dependent lookup (also named Koenig lookup); see std::3.4.2
85 //  [basic.koenig.lookup]
86
87 //  BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS: Template value
88 //  parameters cannot have a dependent type, for example
89 //  "template<class T, typename T::type value> class X { ... };"
90
91 //  BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS: Can only use deduced
92 //  template arguments when calling function template instantiations.
93
94 //  BOOST_NO_INCLASS_MEMBER_INITIALIZATION: Compiler violates std::9.4.2/4. 
95
96 //  BOOST_NO_INT64_T: <boost/cstdint.hpp> does not support 64-bit integer
97 //  types.  (Set by <boost/cstdint.hpp> rather than <boost/config.hpp>).
98
99 //  BOOST_NO_INTEGRAL_INT64_T: int64_t as defined by <boost/cstdint.hpp> is
100 //  not an integral type.
101
102 //  BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS: constants such as
103 //  numeric_limits<T>::is_signed are not available for use at compile-time.
104
105 //  BOOST_NO_MEMBER_TEMPLATES: Member template functions not fully supported.
106 //  Also see BOOST_MSVC6_MEMBER_TEMPLATES in the Compiler Control section below.
107
108 //  BOOST_NO_MEMBER_TEMPLATE_FRIENDS: Member template friend syntax
109 //  ("template<class P> friend class frd;") described in the C++ Standard,
110 //  14.5.3, not supported.
111
112 //  BOOST_NO_OPERATORS_IN_NAMESPACE: Compiler requires inherited operator
113 //  friend functions to be defined at namespace scope, then using'ed to boost.
114 //  Probably GCC specific.  See boost/operators.hpp for example.
115
116 //  BOOST_NO_POINTER_TO_MEMBER_CONST: The compiler does not correctly handle
117 //  pointers to const member functions, preventing use of these in overloaded 
118 //  function templates.  See boost/functional.hpp for example.
119
120 //  BOOST_NO_PRIVATE_IN_AGGREGATE: The compiler misreads 8.5.1, treating classes
121 //  as non-aggregate if they contain private or protected member functions. 
122
123 //  BOOST_NO_STD_ITERATOR: The C++ implementation fails to provide the
124 //  std::iterator class.
125
126 //  BOOST_NO_STD_ITERATOR_TRAITS: The compiler does not provide a standard
127 //  compliant implementation of std::iterator_traits. Note that
128 //  the compiler may still have a non-standard implementation.
129
130 //  BOOST_NO_STDC_NAMESPACE: The contents of C++ standard headers for C library
131 //  functions (the <c...> headers) have not been placed in namespace std.
132 //  Because the use of std::size_t is so common, a specific workaround for
133 //  <cstddef> (and thus std::size_t) is provided in this header (see below).
134 //  For other <c...> headers, a workaround must be provided in the boost header:
135 //
136 //    #include <cstdlib>  // for abs
137 //    #ifdef BOOST_NO_STDC_NAMESPACE
138 //      namespace std { using ::abs; }
139 //    #endif
140
141 //  BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION. Class template partial
142 //  specialization (14.5.4 [temp.class.spec]) not supported.
143
144 //  BOOST_NO_USING_TEMPLATE: The compiler will not accept a using declaration
145 //  that imports a template from the global namespace into a named namespace.
146 //  Probably Borland specific.
147
148 //  BOOST_NO_AUTO_PTR: If the compiler / library supplies non-standard or broken
149 //  std::auto_ptr.
150
151 //  Compiler Control or Information Macros  ----------------------------------//
152 //
153 //  Compilers often supply features outside of the C++ Standard which need to be
154 //  controlled or detected. As usual, reasonable default behavior should occur
155 //  if any of these macros are not defined.
156
157 //  BOOST_DECL:  Certain compilers for Microsoft operating systems require
158 //  non-standard class and function decoration if dynamic load library linking
159 //  is desired.  BOOST_DECL supplies that decoration.  Boost does not require
160 //  use of BOOST_DECL - it is non-standard and to be avoided if practical to do
161 //  so. Even compilers requiring it for DLL's only require it in certain cases.
162 //
163 //    BOOST_DECL_EXPORTS:  User defined, usually via command line or IDE,
164 //    it causes BOOST_DECL to be defined as __declspec(dllexport).
165 //
166 //    BOOST_DECL_IMPORTS:  User defined, usually via command line or IDE,
167 //    it causes BOOST_DECL to be defined as __declspec(dllimport).
168 //
169 //    If neither BOOST_DECL_EXPORTS nor BOOST_DECL_IMPORTS is defined, or if
170 //    the compiler does not require __declspec() decoration, BOOST_DECL is
171 //    defined as a null string.
172
173 //  BOOST_MSVC6_MEMBER_TEMPLATES:  Microsoft Visual C++ 6.0 has enough member
174 //  template idiosyncrasies (being polite) that BOOST_NO_MEMBER_TEMPLATES is
175 //  defined for this compiler. BOOST_MSVC6_MEMBER_TEMPLATES is defined to allow
176 //  compiler specific workarounds.
177
178 //  BOOST_MSVC: defined as _MSC_VER for the Microsoft compiler only. In general,
179 //  boost headers should test for a specific conformance flag macro (for
180 //  example, BOOST_NO_MEMBER_TEMPLATE_FRIENDS) rather than a specific compiler.
181 //  VC++ is a special case, however, since many libraries try to support it yet
182 //  it has so many conformance issues that sometimes it is just easier to test
183 //  for it directly. On the other hand, the obvious way to do this doesn't work,
184 //  as many non-Microsoft compilers define _MSC_VER.  Thus BOOST_MSVC.
185
186 //  BOOST_MSVC_STD_ITERATOR: Microsoft's broken version of std::iterator
187 //  is being used. 
188
189 //  BOOST_SYSTEM_HAS_STDINT_H: There are no 1998 C++ Standard headers <stdint.h> 
190 //  or <cstdint>, although the 1999 C Standard does include <stdint.h>. 
191 //  If <stdint.h> is present, <boost/stdint.h> can make good use of it,
192 //  so a flag is supplied (signalling presence; thus the default is not
193 //  present, conforming to the current C++ standard).
194
195 //  BOOST_NO_SLIST: The C++ implementation does not provide the slist class.
196
197 //  BOOST_NO_STRINGSTREAM: The C++ implementation does not provide the <sstream> header.
198
199 //  BOOST_NO_HASH: The C++ implementation does not provide the hash_set
200 //  or hash_map classes.
201
202 //  BOOST_STD_EXTENSION_NAMESPACE: The name of the namespace in which the slist,
203 //  hash_set and/or hash_map templates are defined in this implementation (if any).
204
205 //  BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS: The standard library does not provide
206 //  templated iterator constructors for its containers.
207
208 //  BOOST_NO_LIMITS: The C++ implementation does not provide the <limits> header.
209
210 //  BOOST_NO_INTRINSIC_WCHAR_T: The C++ implementation does not provide wchar_t,
211 //  or it is really a synonym for another integral type. Use this symbol to
212 //  decide whether it is appropriate to explicitly specialize a template on
213 //  wchar_t if there is already a specialization for other integer types.
214
215 //  BOOST_NO_STD_ALLOCATOR: The C++ standard library does not provide
216 //  a standards conforming std::allocator.
217
218 //  BOOST_NO_STD_MIN_MAX: The C++ standard library does not provide
219 //  the min() and max() template functions that should be in <algorithm>.
220
221 //  Common compiler front-ends precede all compiler checks  ------------------//
222
223 //  Edison Design Group front-ends
224 # if defined(__EDG_VERSION__)
225
226 #   if __EDG_VERSION__ <= 241
227 #     define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
228 #   endif
229
230 # endif
231
232 //  Compiler-specific checks -------------------------------------------------//
233 //  Compilers are listed in alphabetic order (except VC++ last - see below)---//
234
235 //  GNU CC (also known as GCC and G++)  --------------------------------------//
236
237 # if defined __GNUC__
238 #   if __GNUC__ == 2 && __GNUC_MINOR__ == 91
239        // egcs 1.1 won't parse smart_ptr.hpp without this:
240 #      define BOOST_NO_AUTO_PTR
241 #   endif
242 #   if __GNUC__ == 2 && __GNUC_MINOR__ <= 97
243 #     include "LString.h"  // not sure this is the right way to do this -JGS
244 #     if defined(__BASTRING__) && !defined(__GLIBCPP__) && !defined(_CXXRT_STD) && !defined(__SGI_STL) // need to ask Dietmar about this -JGS
245         // this should only detect the stdlibc++ that ships with gcc, and
246         // not any replacements that may be installed...
247 #       define BOOST_NO_STD_ITERATOR
248 #       define BOOST_NO_LIMITS
249 #     endif
250 #     if !defined(_CXXRT_STD) && !defined(__SGI_STL_OWN_IOSTREAMS)
251 #       define BOOST_NO_STRINGSTREAM
252 #     endif
253 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
254 #     define BOOST_NO_OPERATORS_IN_NAMESPACE
255 #   endif
256 #   if __GNUC__ == 2 && __GNUC_MINOR__ <= 8
257 #     define BOOST_NO_MEMBER_TEMPLATES
258 #   endif
259 #   if (__GNUC__ == 2 && __GNUC_MINOR__ > 97) || __GNUC__ > 2
260       // upcoming gcc 3.0
261 #     include <iterator>
262 #     if defined(__GLIBCPP__)
263         // The new GNU C++ library has slist, hash_map, hash_set headers
264         // in <ext/*>, but client code assumes they're in <*> --- Jens M. 
265 #       define BOOST_NO_SLIST
266 #       define BOOST_NO_HASH
267 #     endif
268 #   endif
269
270 //  Intel on Linux ---------------------------------------------------------
271
272 #elif defined __ICC
273 #   include <iterator>
274 #   ifdef _CPPLIB_VER 
275       // shipped with Dinkumware 3.10, which has a different hash_map
276 #     define BOOST_NO_HASH
277 #   endif
278
279 //  Kai C++ ----------------------------------------------------------------
280
281 #elif defined __KCC
282 #   define BOOST_NO_SLIST
283 #   define BOOST_NO_HASH
284
285 #   if __KCC_VERSION <= 4001
286       // at least on Sun, the contents of <cwchar> is not in namespace std
287 #     define BOOST_NO_STDC_NAMESPACE
288 #   endif
289
290 //  SGI MIPSpro C++ --------------------------------------------------------
291
292 #elif defined __sgi
293
294 //  Compaq Tru64 Unix cxx ---------------------------------------------------
295
296 #elif defined __DECCXX
297 #   define BOOST_NO_SLIST
298 #   define BOOST_NO_HASH
299 #   define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
300
301 //  Greenhills C++ -----------------------------------------------------------//
302
303 #elif defined __ghs
304 #   define BOOST_NO_SLIST
305 #   define BOOST_NO_HASH
306
307 //  Borland ------------------------------------------------------------------//
308
309 #elif defined __BORLANDC__
310 #   define BOOST_NO_SLIST
311 #   define BOOST_NO_HASH
312 // pull in standard library version:
313 #   include <memory>
314 #   if __BORLANDC__ <= 0x0551
315 #     define BOOST_NO_INTEGRAL_INT64_T
316 #     define BOOST_NO_PRIVATE_IN_AGGREGATE
317 #   endif
318 #   if __BORLANDC__ <= 0x0550
319 // Borland C++ Builder 4 and 5:
320 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
321 #     define BOOST_NO_USING_TEMPLATE
322 #     if __BORLANDC__ == 0x0550
323 // Borland C++ Builder 5, command-line compiler 5.5:
324 #       define BOOST_NO_OPERATORS_IN_NAMESPACE
325 #     endif
326 #   endif
327 #   if defined BOOST_DECL_EXPORTS
328 #     if defined BOOST_DECL_IMPORTS
329 #       error Not valid to define both BOOST_DECL_EXPORTS and BOOST_DECL_IMPORTS
330 #     endif
331 #     define BOOST_DECL __declspec(dllexport)
332 #   elif defined BOOST_DECL_IMPORTS
333 #     define BOOST_DECL __declspec(dllimport)
334 #   else
335 #     define BOOST_DECL
336 #   endif
337 #if (__BORLANDC__ == 0x550) || (__BORLANDC__ == 0x551)
338 // <climits> is partly broken, some macos define symbols that are really in
339 // namespace std, so you end up having to use illegal constructs like
340 // std::DBL_MAX, as a fix we'll just include float.h and have done with:
341 #include <float.h>
342 #endif
343 #   define BOOST_NO_CV_SPECIALIZATIONS
344 #   define BOOST_NO_CV_VOID_SPECIALIZATIONS
345
346 //  Intel on Windows --------------------------------------------------------//
347
348 # elif defined __ICL
349 #   include <iterator>  // not sure this is the right way to do this -JGS
350 #   if __SGI_STL_PORT >= 0x400 || __SGI_STL_PORT >= 0x321 && defined(__STL_USE_NAMESPACES)
351         // a perfectly good implementation of std::iterator is supplied
352 #   elif defined(__SGI_STL_ITERATOR)
353 #     define BOOST_NO_STD_ITERATOR // No std::iterator in this case
354 #   elif defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
355 #     // full dinkumware 3.06 and above
356 #     define BOOST_NO_HASH
357 #     define BOOST_NO_STD_ITERATOR_TRAITS
358 #     if !_GLOBAL_USING   // can be defined in yvals.h
359 #       define BOOST_NO_STDC_NAMESPACE
360 #     endif
361 #   else // assume using dinkumware's STL that comes with VC++ 6.0
362 #     define BOOST_MSVC_STD_ITERATOR
363 #     define BOOST_NO_STD_ITERATOR_TRAITS
364 #     define BOOST_NO_STDC_NAMESPACE
365 #     define BOOST_NO_SLIST
366 #     define BOOST_NO_HASH
367 #     define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
368 #     define BOOST_NO_STD_ALLOCATOR
369 #     define BOOST_NO_STD_MIN_MAX
370 #   endif
371 #   define BOOST_NO_INTRINSIC_WCHAR_T // tentative addition - required for VC6 compatibility? (added by JM 19 Feb 2001)
372
373 //  Metrowerks CodeWarrior  --------------------------------------------------//
374
375 # elif defined  __MWERKS__
376 #   if __MWERKS__ <= 0x2401  // 6.2
377 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
378 #   endif
379 #   if __MWERKS__ <= 0x2301  // 5.3
380 #     define BOOST_NO_POINTER_TO_MEMBER_CONST
381 #     define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
382 #   endif
383 #   if __MWERKS__ >= 0x2300
384 #     define BOOST_SYSTEM_HAS_STDINT_H
385 #   endif
386 #   if defined BOOST_DECL_EXPORTS
387 #     if defined BOOST_DECL_IMPORTS
388 #       error Not valid to define both BOOST_DECL_EXPORTS and BOOST_DECL_IMPORTS
389 #     endif
390 #     define BOOST_DECL __declspec(dllexport)
391 #   elif defined BOOST_DECL_IMPORTS
392 #     define BOOST_DECL __declspec(dllimport)
393 #   else
394 #     define BOOST_DECL
395 #   endif
396
397 #   define BOOST_STD_EXTENSION_NAMESPACE Metrowerks
398
399 //  Sun Workshop Compiler C++ ------------------------------------------------
400
401 # elif defined  __SUNPRO_CC
402 #    if __SUNPRO_CC <= 0x520
403 #      define BOOST_NO_SLIST
404 #      define BOOST_NO_HASH
405 #      define BOOST_NO_STD_ITERATOR_TRAITS
406        // although sunpro 5.1 supports the syntax for
407        // inline initialization it often gets the value
408        // wrong, especially where the value is computed
409        // from other constants (J Maddock 6th May 2001)
410 #      define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
411        // although sunpro 5.1 supports the syntax for
412        // partial specialization, it often seems to
413        // bind to the wrong specialization.  Better
414        // to disable it until suppport becomes more stable
415        // (J Maddock 6th May 2001).
416 #      define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
417 #    endif
418 #    if __SUNPRO_CC <= 0x500
419 #      define BOOST_NO_MEMBER_TEMPLATES
420 #      define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
421 #    endif
422
423
424 //  HP aCC -------------------------------------------------------------------
425
426 # elif defined __HP_aCC
427 #    define BOOST_NO_SLIST
428 #    define BOOST_NO_HASH
429 #    define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
430 #    define BOOST_NO_OPERATORS_IN_NAMESPACE
431      // (support for HP aCC is not complete, see the regression test results)
432
433 //  Microsoft Visual C++ (excluding Intel/EDG front end)  --------------------
434 //
435 //  Must remain the last #elif since some other vendors (Metrowerks, for
436 //  example) also #define _MSC_VER
437
438 # elif defined _MSC_VER
439 #   define BOOST_MSVC _MSC_VER
440
441     // turn off the warnings before we #include anything
442 #   pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
443 #   pragma warning( disable : 4503 ) // warning: decorated name length exceeded
444
445 #   if _MSC_VER <= 1200  // 1200 == VC++ 6.0
446 #     define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
447 #     define BOOST_NO_PRIVATE_IN_AGGREGATE
448 #     define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
449 #     define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
450
451 #     define BOOST_NO_INTEGRAL_INT64_T
452 #     define BOOST_NO_INTRINSIC_WCHAR_T
453
454 //    VC++ 6.0 has member templates but they have numerous problems including
455 //    cases of silent failure, so for safety we define:
456 #     define BOOST_NO_MEMBER_TEMPLATES
457 //    For VC++ experts wishing to attempt workarounds, we define:
458 #     define BOOST_MSVC6_MEMBER_TEMPLATES
459
460 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
461 #     define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
462 #     define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
463
464 #     include <iterator>  // not sure this is the right way to do this -JGS
465 #     if __SGI_STL_PORT >= 0x400 || __SGI_STL_PORT >= 0x321 && defined(__STL_USE_NAMESPACES)
466         // a perfectly good implementation of std::iterator is supplied
467 #     elif defined(__SGI_STL_ITERATOR)
468 #       define BOOST_NO_STD_ITERATOR // No std::iterator in this case
469 #     elif defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
470         // full dinkumware 3.06 and above
471 #       define BOOST_NO_HASH
472 #       define BOOST_NO_STD_ITERATOR_TRAITS
473 #       ifndef _GLOBAL_USING    // can be defined in yvals.h
474 #         define BOOST_NO_STDC_NAMESPACE
475 #       endif
476 #     else
477 #       define BOOST_MSVC_STD_ITERATOR 1
478 #       define BOOST_NO_SLIST
479 #       define BOOST_NO_HASH
480 #       define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
481 #       define BOOST_NO_STD_ALLOCATOR
482 #       ifndef _CPPLIB_VER
483           // Updated Dinkum library defines this, and provides
484           // its own min and max definitions.
485 #         define BOOST_NO_STD_MIN_MAX
486 #         undef min
487 #         undef max
488 #       endif
489 #       ifndef NOMINMAX
490           // avoid spurious NOMINMAX redefinition warning
491 #         define NOMINMAX
492 #       endif
493 #     endif
494 #     define BOOST_NO_STD_ITERATOR_TRAITS
495 #     define BOOST_NO_CV_VOID_SPECIALIZATIONS
496
497
498 // Make sure at least one standard library header is included so that library
499 // implementation detection will work, even if no standard headers have been
500 // included in front of a boost header. (Ed Brey 5 Jun 00)
501 #     include <cstddef>
502
503 // Determine if the standard library implementation is already pulling names
504 // into std.  STLport defines the following if so. (Ed Brey 5 Jun 00)
505 #     if !defined( __STL_IMPORT_VENDOR_CSTD ) || defined( __STL_NO_CSTD_FUNCTION_IMPORTS )
506 #       define BOOST_NO_STDC_NAMESPACE
507 #     endif
508
509 #   endif
510
511 #   if defined BOOST_DECL_EXPORTS
512 #     if defined BOOST_DECL_IMPORTS
513 #       error Not valid to define both BOOST_DECL_EXPORTS and BOOST_DECL_IMPORTS
514 #     endif
515 #     define BOOST_DECL __declspec(dllexport)
516 #   elif defined BOOST_DECL_IMPORTS
517 #     define BOOST_DECL __declspec(dllimport)
518 #   else
519 #     define BOOST_DECL
520 #   endif
521
522 # endif // Microsoft (excluding Intel/EDG frontend) 
523
524 # ifndef BOOST_DECL
525 #   define BOOST_DECL  // default for compilers not needing this decoration.
526 # endif
527
528 //  end of compiler specific portion  ----------------------------------------//
529
530 #if defined(BOOST_NO_LIMITS) || (defined(_RWSTD_VER) && defined(__BORLANDC__) && _RWSTD_VER < 0x020300) || (defined(__SGI_STL_PORT) && __SGI_STL_PORT <= 0x410 && defined(__STL_STATIC_CONST_INIT_BUG))
531 // STLPort 4.0 doesn't define the static constants in numeric_limits<> so that they
532 // can be used at compile time if the compiler bug indicated by
533 // __STL_STATIC_CONST_INIT_BUG is present.
534
535 // Rogue wave STL (C++ Builder) also has broken numeric_limits
536 // with default template defining members out of line.
537 // However, Compaq C++ also uses RogueWave (version 0x0203) and it's ok.
538 #   define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
539 #endif
540
541 #if defined(__hpux)
542 // HP-UX has a nice stdint.h in a different location, see boost/cstdint.hpp
543 # define BOOST_SYSTEM_HAS_STDINT_H
544 #endif
545
546 #ifndef BOOST_STD_EXTENSION_NAMESPACE
547 # define BOOST_STD_EXTENSION_NAMESPACE std
548 #endif
549
550 // Check for old name "BOOST_NMEMBER_TEMPLATES" for compatibility  -----------//
551 // Don't use BOOST_NMEMBER_TEMPLATES. It is deprecated and will be removed soon.
552 #if defined( BOOST_NMEMBER_TEMPLATES ) && !defined( BOOST_NO_MEMBER_TEMPLATES )
553   #define BOOST_NO_MEMBER_TEMPLATES
554 #endif
555
556 //  BOOST_NO_STDC_NAMESPACE workaround  --------------------------------------//
557 //
558 //  Because std::size_t usage is so common, even in boost headers which do not
559 //  otherwise use the C library, the <cstddef> workaround is included here so
560 //  that ugly workaround code need not appear in many other boost headers.
561 //  NOTE WELL: This is a workaround for non-conforming compilers; <cstddef> 
562 //  must still be #included in the usual places so that <cstddef> inclusion
563 //  works as expected with standard conforming compilers.  The resulting
564 //  double inclusion of <cstddef> is harmless.
565
566 # ifdef BOOST_NO_STDC_NAMESPACE
567 #   include <cstddef>
568     namespace std { using ::ptrdiff_t; using ::size_t; }
569     // using ::wchar_t; removed since wchar_t is a C++ built-in type (Ed Brey)
570 # endif
571
572 #ifdef BOOST_NO_STD_MIN_MAX
573 namespace std {
574   template <class _Tp>
575   inline const _Tp& min(const _Tp& __a, const _Tp& __b) {
576     return __b < __a ? __b : __a;
577   }
578   template <class _Tp>
579   inline const _Tp& max(const _Tp& __a, const _Tp& __b) {
580     return  __a < __b ? __b : __a;
581   }
582 #ifdef BOOST_MSVC
583   inline long min(long __a, long __b) {
584     return __b < __a ? __b : __a;
585   }
586   inline long max(long __a, long __b) {
587     return  __a < __b ? __b : __a;
588   }
589 #endif
590 }
591 #endif
592
593 // BOOST_STATIC_CONSTANT workaround --------------------------------------- //
594 // On compilers which don't allow in-class initialization of static integral
595 // constant members, we must use enums as a workaround if we want the constants
596 // to be available at compile-time. This macro gives us a convenient way to
597 // declare such constants.
598 #ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
599 # define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment }
600 #else
601 # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
602 #endif
603
604 #endif  // BOOST_CONFIG_HPP
605
606
607
608
609
610