Просмотр исходного кода

Old numeric_cast<> completely replaced by new code (except that the old code is retained as a fallback mechanism for old broken compilers that can't deal with the new code)

[SVN r29761]
Fernando Cacciola 21 лет назад
Родитель
Сommit
958eedc08c
5 измененных файлов с 38 добавлено и 77 удалено
  1. 1 1
      libs/conversion
  2. 9 13
      libs/libraries.htm
  3. 1 1
      libs/mpl
  4. 1 1
      libs/numeric/conversion
  5. 26 61
      status/explicit-failures-markup.xml

+ 1 - 1
libs/conversion

@@ -1 +1 @@
-Subproject commit e331fc2a21731d6534024cb0c64cdce7d73752bf
+Subproject commit e66d58e6de9bd8d25a74751e21ea184a65b1cdc8

+ 9 - 13
libs/libraries.htm

@@ -106,8 +106,7 @@ how to download, build, and install the libraries.</p>
     <li><a href="config/config.htm">config</a> - Helps boost
         library developers adapt to compiler idiosyncrasies; not
         intended for library users.</li>
-    <li><a href="conversion/index.html">conversion</a> - Numeric,
-        polymorphic, and lexical casts, from Dave Abrahams and
+    <li><a href="conversion/index.html">conversion</a>Polymorphic and lexical casts, from Dave Abrahams and
         Kevlin Henney.</li>
     <li><a href="crc/index.html">crc</a> - Cyclic Redundancy Code, from Daryle
       Walker.</li>
@@ -182,7 +181,7 @@ how to download, build, and install the libraries.</p>
     metaprogramming tools including repetition and recursion, from Vesa Karvonen
     and Paul Mensonides.</li>
     <li><a href="../doc/html/program_options.html">program_options</a> - Access to configuration
-        data given on command line, in config files and other sources, from Vladimir Prus.</li> 
+        data given on command line, in config files and other sources, from Vladimir Prus.</li>
     <li><a href="property_map/property_map.html">property map</a>
         - Concepts defining interfaces which map key objects to
         value objects, from Jeremy Siek.</li>
@@ -245,7 +244,7 @@ how to download, build, and install the libraries.</p>
 	from Fernando Cacciola, based on the original idea of David Abrahams.</li>
     <li><a href="variant/index.html">variant</a> - Safe, generic, stack-based discriminated union
     container, from Eric Friedman and Itay Maman.</li>
-    <li><a href="wave/index.html">wave</a> -  Standards conformant 
+    <li><a href="wave/index.html">wave</a> -  Standards conformant
   implementation of the mandated C99/C++ preprocessor functionality packed behind an easy to use iterator interface, from Hartmut&nbsp;Kaiser </li>
 </ul>
 
@@ -418,8 +417,6 @@ how to download, build, and install the libraries.</p>
 <ul>
     <li><a href="math/doc/index.html">math</a> - Several contributions in the
     domain of mathematics, from various authors.</li>
-    <li><a href="conversion/cast.htm">conversion/numeric_cast</a> - <tt>numeric_cast</tt>
-      class template, from Kevlin Henney.</li>
     <li><a href="numeric/conversion/index.html">numeric/conversion</a> - Optimized Policy-based Numeric Conversions,
         from Fernando Cacciola.</li>
     <li><a href="integer/index.html">integer</a> - Headers to ease
@@ -489,7 +486,7 @@ how to download, build, and install the libraries.</p>
   prevent jumbled data, from Daryle Walker.</li>
   <li><a href="iostreams/doc/index.html">iostreams</a> - Framework for defining streams, stream buffers and i/o filters, from Jonathan Turkanis.</li>
   <li><a href="../doc/html/program_options.html">program_options</a> - Access to configuration
-  data given on command line, in config files and other sources, from Vladimir Prus.</li> 
+  data given on command line, in config files and other sources, from Vladimir Prus.</li>
   <li><a href="serialization/doc/index.html">serialization</a> - Serialization
 of arbitrary data for persistence and marshalling, from Robert Ramey</li>
     <li><a href="assign/index.html">assign</a> - Filling containers
@@ -538,8 +535,7 @@ of arbitrary data for persistence and marshalling, from Robert Ramey</li>
     <li><a href="utility/compressed_pair.htm">compressed_pair</a>
         - Empty member optimization, from John Maddock, Howard
         Hinnant, et al.</li>
-    <li><a href="conversion/index.html">conversion</a> - Numeric,
-        polymorphic, and lexical casts, from Dave Abrahams and
+    <li><a href="conversion/index.html">conversion</a> - Polymorphic and lexical casts, from Dave Abrahams and
         Kevlin Henney.</li>
     <li><a href="numeric/conversion/index.html">numeric/conversion</a> - Optimized Policy-based Numeric Conversions,
         from Fernando Cacciola.</li>
@@ -552,7 +548,7 @@ of arbitrary data for persistence and marshalling, from Robert Ramey</li>
     <li><a href="optional/doc/optional.html">optional</a> - Discriminated-union
     wrapper for optional values, from Fernando Cacciola.</li>
     <li><a href="../doc/html/program_options.html">program_options</a> - Access to configuration
-        data given on command line, in config files and other sources, from Vladimir Prus.</li> 
+        data given on command line, in config files and other sources, from Vladimir Prus.</li>
     <li><a href="timer/index.html">timer</a> - Event timer,
         progress timer, and progress display classes, from Beman
         Dawes.</li>
@@ -593,11 +589,11 @@ of arbitrary data for persistence and marshalling, from Robert Ramey</li>
 
 <p>Revised
 <!--webbot bot="Timestamp" s-type="EDITED"
-s-format="%d %b %Y" startspan -->07 October 2004<!--webbot bot="Timestamp" endspan i-checksum="14890" --></p>
+s-format="%d %b %Y" startspan -->23 June 2005<!--webbot bot="Timestamp" endspan i-checksum="14890" --></p>
 
 <p>© Copyright Beman Dawes 2000-2004</p>
-<p>Distributed under the Boost Software License, Version 1.0. 
-(See accompanying file <a href="../LICENSE_1_0.txt">LICENSE_1_0.txt</a> 
+<p>Distributed under the Boost Software License, Version 1.0.
+(See accompanying file <a href="../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
 or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)
 </p>
 

+ 1 - 1
libs/mpl

@@ -1 +1 @@
-Subproject commit e6530565659b3d97ea389f3bb0f3189d2000f074
+Subproject commit de299f5f3e65064d0303a4cd79d6f2aa16cc81b3

+ 1 - 1
libs/numeric/conversion

@@ -1 +1 @@
-Subproject commit baab4967663e7e37c7f7d3736b45472f22877d98
+Subproject commit b83988d8a11ee40af4f6b93c1a08173e491f75e9

+ 26 - 61
status/explicit-failures-markup.xml

@@ -80,14 +80,14 @@
               <toolset name="vc-6_5-stlport"/>
               <note author="Vladimir Prus">
                 The test fail with ICE, but the exact reason for ICE is not
-                known. A minimal example of casting any to reference type 
+                known. A minimal example of casting any to reference type
                 seem to work. Anyone interested in using this functionality
                 with msvc is suggested to do additional testing.
               </note>
           </mark-failure>
         </test>
     </library>
-    
+
 
     <!-- array -->
     <library name="array">
@@ -170,14 +170,14 @@
             <toolset name="intel-win32-8_1"/>
             <toolset name="intel-win32-9_0"/>
             <note author="Thorsten Ottosen">
-                The test would (most likely) compile and run properly if 
+                The test would (most likely) compile and run properly if
                 the test did not use list_of() with boost::array.
                 I would be very happy to see an intel programmer
                 submit a patch. It is quite strange that it only happens on
                 intel's windows compilers.
             </note>
          </mark-expected-failures>
-            
+
         <mark-expected-failures>
             <test name="list_of_workaround"/>
             <toolset name="sunpro-5_3-sunos"/>
@@ -223,7 +223,7 @@
             <toolset name="vc-7_0"/>
             <toolset name="mipspro"/>
             <note author="Thorsten Ottosen" >
-                The test depends on Boost.Pointer Container which probably does not work for 
+                The test depends on Boost.Pointer Container which probably does not work for
                 this compiler.
             </note>
         </mark-expected-failures>
@@ -237,7 +237,7 @@
             <toolset name="vc-6_5-stlport"/>
             <toolset name="mipspro"/>
             <note author="Thorsten Ottosen" >
-                The test depends on Boost.Pointer Container which probably does not work for 
+                The test depends on Boost.Pointer Container which probably does not work for
                 this compiler.
             </note>
         </mark-expected-failures>
@@ -245,7 +245,7 @@
             <test name="std"/>
             <toolset name="sunpro-5_3-sunos"/>
             <note author="Thorsten Ottosen" >
-                The test does not work for 
+                The test does not work for
                 this compiler.
             </note>
         </mark-expected-failures>
@@ -258,7 +258,7 @@
             <toolset name="vc-6_5-stlport"/>
             <toolset name="vc-7_0"/>
             <note author="Thorsten Ottosen" >
-                The test depends on Boost.Tuple which probably does not work for 
+                The test depends on Boost.Tuple which probably does not work for
                 this compiler.
             </note>
         </mark-expected-failures>
@@ -484,7 +484,7 @@
             <toolset name="msvc"/>
             <toolset name="vc-7_0"/>
                 <note author="J. Garland">
-                   Some older compilers are confused by the template code here.  
+                   Some older compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -500,7 +500,7 @@
             <toolset name="gcc-2.95.3-stlport-4.5.3-linux"/>
             <toolset name="gcc-2.95.3-stlport-4.6.2-linux"/>
                 <note author="J. Garland">
-                   Some older compilers are confused by the template code here.  
+                   Some older compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -514,7 +514,7 @@
             <toolset name="gcc-2.95.3-linux"/>
             <toolset name="msvc"/>
                 <note author="J. Garland">
-                   Some compilers are confused by the template code here.  
+                   Some compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -532,7 +532,7 @@
             <toolset name="msvc"/>
             <toolset name="vc-7_0"/>
                 <note author="J. Garland">
-                   Some older compilers are confused by the template code here.  
+                   Some older compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -551,7 +551,7 @@
             <toolset name="msvc"/>
             <toolset name="vc-7_0"/>
                 <note author="J. Garland">
-                   Some older compilers are confused by the template code here.  
+                   Some older compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -565,7 +565,7 @@
             <toolset name="*como-4_3_3*"/>
             <toolset name="msvc"/>
                 <note author="J. Garland">
-                   Some older compilers are confused by the template code here.  
+                   Some older compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -578,7 +578,7 @@
             <toolset name="gcc-2.95.3-linux"/>
             <toolset name="msvc"/>
                 <note author="J. Garland">
-                   Some older compilers are confused by the template code here.  
+                   Some older compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -589,7 +589,7 @@
             <mark-failure>
             <toolset name="tru64cxx65-042"/>
                 <note author="J. Garland">
-                   There something non-standard about the tru64 standard library which 
+                   There something non-standard about the tru64 standard library which
                    is preventing these tests from compiling.
                 </note>
             </mark-failure>
@@ -602,7 +602,7 @@
                 <toolset name="gcc-2.95.3-linux"/>
                 <toolset name="msvc"/>
                 <note author="J. Garland">
-                   Some compilers are confused by the template code here.  
+                   Some compilers are confused by the template code here.
                    These are new features to date-time in 1.33 and there is no
                    plan to backport to these non-compliant compilers.
                 </note>
@@ -711,7 +711,7 @@
                 <note author="J. Garland" date="30 Jan 2004" id="24"/>
             </mark-failure>
         </test>
-        
+
         <mark-expected-failures>
             <test name="testdate_dll"/>
             <test name="testdate_duration_dll"/>
@@ -730,7 +730,7 @@
                 <test name="testtime_input_facet"/>
             <toolset name="cw-9_5*"/>
             <note author="J. Garland">
-                 Although these tests compile, the execution aborts for 
+                 Although these tests compile, the execution aborts for
                  an unknown reason.  This may be fixable if someone
                  can track down the source of the problem.
             </note>
@@ -1736,41 +1736,6 @@ for more information.
     </library>
 
 
-    <!-- numeric/conversion -->
-    <library name="numeric/conversion">
-        <mark-unusable>
-            <toolset name="gcc-2.95.3-linux"/>
-            <toolset name="borland-5_6_4"/>
-            <note author="Aleksey Gurtovoy" refid="5"/>
-        </mark-unusable>
-        <mark-expected-failures>
-            <test name="udt_support_test"/>
-            <toolset name="gcc-2.95.3-stlport-4.5.3-linux"/>
-            <toolset name="gcc-2.95.3-stlport-4.6.2-linux"/>
-            <toolset name="intel-7.1-linux"/>
-            <toolset name="intel-7.1-stdlib-default-linux"/>
-            <toolset name="msvc"/>
-            <toolset name="msvc-stlport"/>
-            <toolset name="vc-6_5-stlport"/>
-            <note author="Aleksey Gurtovoy" refid="2"/>
-        </mark-expected-failures>
-        <mark-expected-failures>
-            <test name="converter_test"/>
-            <toolset name="msvc"/>
-            <toolset name="msvc-stlport"/>
-            <toolset name="vc-6_5-stlport"/>
-            <note author="Aleksey Gurtovoy" refid="2"/>
-        </mark-expected-failures>
-        <mark-expected-failures>
-            <test name="numeric_cast_test"/>
-            <toolset name="msvc"/>
-            <toolset name="msvc-stlport"/>
-            <toolset name="vc-6_5-stlport"/>
-            <note author="Aleksey Gurtovoy" refid="2"/>
-        </mark-expected-failures>
-    </library>
-
-
     <!-- numeric/interval -->
     <library name="numeric/interval">
         <mark-unusable>
@@ -1953,7 +1918,7 @@ for more information.
             <toolset name="vc-6_5*"/>
             <toolset name="vc-7_0"/>
             <toolset name="dmc-8_43-stlport-4_5_3"/>
-        </mark-unusable>   
+        </mark-unusable>
         <mark-expected-failures>
             <test name="ptr_list"/>
             <toolset name="gcc-4.0.0*"/>
@@ -1969,10 +1934,10 @@ for more information.
                 The error is due to problems in the standard library implementation.
                 It should be fixed in newer versions of the compiler.
             </note>
-        </mark-expected-failures>     
+        </mark-expected-failures>
     </library>
 
-    
+
     <!-- python -->
     <library name="python">
         <mark-unusable>
@@ -2228,7 +2193,7 @@ for more information.
             <mark-failure>
                 <toolset name="*como-4_3_3*"/>
                 <note author="J. Maddock">
-                This test requires features that are unsupported by Como: 
+                This test requires features that are unsupported by Como:
                 use and building of dll's mainly.
                 </note>
             </mark-failure>
@@ -2238,7 +2203,7 @@ for more information.
             <test name="grep"/>
             <toolset name="*como-4_3_3*"/>
             <note author="J. Maddock">
-            This test requires features that are unsupported by Como: 
+            This test requires features that are unsupported by Como:
             use and building of dll's mainly.
             </note>
         </mark-expected-failures>
@@ -2594,7 +2559,7 @@ for more information.
             <test name="remove_bounds_test"/>
             <test name="remove_extent_test"/>
             <toolset name="sunpro-5_3-sunos"/>
-            
+
             <note author="John Maddock">
                 The Type Traits library is broken when used with Sunpro-5.3 and the
                 argument to the template is an array or function type.  Most other argument types
@@ -2627,7 +2592,7 @@ for more information.
             <toolset name="cw-8_3"/>
             <note author="John Maddock">
                Older versions of MWCW incorrectly align pointers to member functions
-               (they use 12-byte boundaries, rather than a power-of-2 boundary), 
+               (they use 12-byte boundaries, rather than a power-of-2 boundary),
                leading to alignment_of / aligned_storage
                to fail with these types on this compiler.
             </note>

粤ICP备19079148号