Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/compatibility/index.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 3.0 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"
2"http://www.w3.org/TR/REC-html40/strict.dtd">
3
4<title>Boost.Compatibilty library</title>
5
6<div>
7
8<img src="../../boost.png"
9     alt="boost.png (6897 bytes)"
10     align="center"
11     width="277" height="86">
12
13<hr>
14<h1>Boost.Compatibilty library</h1>
15
16<p>
17This library provides workarounds which allow the other Boost libraries
18to be used on otherwise non-conforming platforms. We hope that it will
19be possible to remove this library at some time in the future as
20standard library suppliers become more conforming.
21
22<h2>
23Missing C++ standard library CXX headers (e.g &lt;cstdio&gt;) workaround</h2>
24
25<p>
26The Python script:
27<tt><a href="generate_cpp_c_headers.py">generate_cpp_c_headers.py</a> </tt>creates a full set of C++ C header files
28(e.g. &lt;cstdio&gt;) that are missing on some platforms.
29The header files created by this script reside in the directory <tt><a href="../../boost/compatibility/cpp_c_headers/">boost/compatibility/cpp_c_headers</a></tt>.
30To use the header files, add this directory to the include
31file search path. For example:
32
33<pre>
34cxx -I/usr/local/boost/boost/compatibility/cpp_c_headers ...
35</pre>
36
37<p>
38Supported platforms are:
39<ul>
40<li>Compaq Alpha, RedHat 6.2 Linux, Compaq C++ V6.3 (cxx)
41<li>Compaq Alpha, Tru64 Unix V5.0, Compaq C++ V6.2 (cxx)
42<li>Silicon Graphics, IRIX 6.5, MIPSpro Compilers: Version 7.3.1.1m (CC)
43</ul>
44
45<p>
46There are more powerful alternatives to using
47the Boost.Compatibility library CXX headers, e.g.
48<a href="http://www.stlport.org/">STLport</a> or
49<a href="http://www.fnal.gov/docs/working-groups/fpcltf/Pkg/ISOcxx/doc/0ISOcxx.html">ISOCXX</a>.
50However, in contrast to these alternatives, the
51<tt>generate_cpp_c_headers.py</tt> script is very light-weight (less
52than 100 non-comment lines of Python code), much less ambitious,
53significantly easier to maintain and therefore more suitable as an interim workaround.
54
55<p>
56Contributed by Ralf W. Grosse-Kunstleve.
57
58<h2>
59Missing C++ standard library &lt;limits&gt; header workaround <a href="../../boost/limits.hpp">boost/limits.hpp</a></h2>
60<p>Several Boost libraries require the standard library's &lt;limits&gt; header,
61yet this header is not always supplied by non-conforming compilers and
62libraries.&nbsp; Header <a href="../../boost/limits.hpp">boost/limits.hpp</a>
63simply includes the standard library &lt;limits&gt; header if available,
64otherwise includes <a href="../../boost/detail/limits.hpp">boost/detail/limits.hpp</a>.&nbsp;
65BOOST_NO_LIMITS from <a href="../config/config.htm">boost/config.hpp</a> is used
66to determine &lt;limits&gt; availability.
67<p>Note also the test program <a href="../config/test/limits_test.cpp">limits_test.cpp</a>
68
69<p>
70Contributed by Jens Maurer.
71
72<p>
73&nbsp;
74
75<hr>
76&copy; Copyright Ralf W. Grosse-Kunstleve 2001. Permission to copy,
77use, modify, sell and distribute this document is granted provided this
78copyright notice appears in all copies. This document is provided "as
79is" without express or implied warranty, and with no claim as to its
80suitability for any purpose.
81
82<p>
83Updated: April 16, 2001
84</div>
Note: See TracBrowser for help on using the repository browser.