Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85149 - in trunk: boost libs/conversion libs/conversion/test
From: antoshkka_at_[hidden]
Date: 2013-07-24 04:46:09


Author: apolukhin
Date: 2013-07-24 04:46:08 EDT (Wed, 24 Jul 2013)
New Revision: 85149
URL: http://svn.boost.org/trac/boost/changeset/85149

Log:
Fix warnings in lexical_cast found by Boost Inspection program (copyrights restored according to svn history, license text replaced with license name and link to it)

Text files modified:
   trunk/boost/lexical_cast.hpp | 4 ++--
   trunk/libs/conversion/cast.htm | 18 ++++++++++++------
   trunk/libs/conversion/index.html | 15 +++++++++++++--
   trunk/libs/conversion/test/implicit_cast_fail.cpp | 2 +-
   trunk/libs/conversion/test/lexical_cast_to_pointer_test.cpp | 2 +-
   5 files changed, 29 insertions(+), 12 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp Wed Jul 24 04:39:29 2013 (r85148)
+++ trunk/boost/lexical_cast.hpp 2013-07-24 04:46:08 EDT (Wed, 24 Jul 2013) (r85149)
@@ -2557,7 +2557,7 @@
         );
     }
 #endif
-#ifndef BOOST_NO_CHAR16_T
+#ifndef BOOST_NO_CXX11_CHAR16_T
     template <typename Target>
     inline Target lexical_cast(const char16_t* chars, std::size_t count)
     {
@@ -2566,7 +2566,7 @@
         );
     }
 #endif
-#ifndef BOOST_NO_CHAR32_T
+#ifndef BOOST_NO_CXX11_CHAR32_T
     template <typename Target>
     inline Target lexical_cast(const char32_t* chars, std::size_t count)
     {

Modified: trunk/libs/conversion/cast.htm
==============================================================================
--- trunk/libs/conversion/cast.htm Wed Jul 24 04:39:29 2013 (r85148)
+++ trunk/libs/conversion/cast.htm 2013-07-24 04:46:08 EDT (Wed, 24 Jul 2013) (r85149)
@@ -10,6 +10,13 @@
     <meta name="ProgId" content="FrontPage.Editor.Document">
 
     <title>Header boost/cast.hpp Documentation</title>
+ <style>
+ .copyright
+ {
+ color: #666666;
+ font-size: small;
+ }
+ </style>
   </head>
 
   <body bgcolor="#FFFFFF" text="#000000">
@@ -131,10 +138,9 @@
                     -->June 23, 2005<!--webbot bot="Timestamp" endspan i-checksum="30348"
                     --></p>
 
- <p>&copy; Copyright boost.org 1999. Permission to copy, use, modify, sell
- and distribute this document is granted provided this copyright notice
- appears in all copies. This document is provided "as is" without express
- or implied warranty, and with no claim as to its suitability for any
- purpose.</p>
+ <p class="copyright">&copy; Copyright boost.org 1999.
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ </p>
   </body>
-</html>
\ No newline at end of file
+</html>

Modified: trunk/libs/conversion/index.html
==============================================================================
--- trunk/libs/conversion/index.html Wed Jul 24 04:39:29 2013 (r85148)
+++ trunk/libs/conversion/index.html 2013-07-24 04:46:08 EDT (Wed, 24 Jul 2013) (r85149)
@@ -6,6 +6,13 @@
 <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
 <meta name="ProgId" content="FrontPage.Editor.Document">
 <title>Boost Conversion Library</title>
+<style>
+ .copyright
+ {
+ color: #666666;
+ font-size: small;
+ }
+</style>
 </head>
 
 <body bgcolor="#FFFFFF" text="#000000">
@@ -32,7 +39,11 @@
 <p>Revised <!--webbot bot="Timestamp" S-Type="EDITED"
 S-Format="%d %B, %Y" startspan -->June 23, 2005<!--webbot bot="Timestamp" endspan i-checksum="30348" -->
 </p>
-
+<p class="copyright">
+ Copyright 2001 Beman Dawes.
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+</p>
 </body>
 
-</html>
\ No newline at end of file
+</html>

Modified: trunk/libs/conversion/test/implicit_cast_fail.cpp
==============================================================================
--- trunk/libs/conversion/test/implicit_cast_fail.cpp Wed Jul 24 04:39:29 2013 (r85148)
+++ trunk/libs/conversion/test/implicit_cast_fail.cpp 2013-07-24 04:46:08 EDT (Wed, 24 Jul 2013) (r85149)
@@ -20,7 +20,7 @@
 {
     foo x = implicit_cast<foo>("foobar");
     (void)x; // warning suppression.
- BOOST_CHECK(false); // suppressing warning about ‘boost::unit_test::{anonymous}::unit_test_log’ defined but not used
+ BOOST_CHECK(false); // suppressing warning about 'boost::unit_test::{anonymous}::unit_test_log' defined but not used
     return 0;
 }
 

Modified: trunk/libs/conversion/test/lexical_cast_to_pointer_test.cpp
==============================================================================
--- trunk/libs/conversion/test/lexical_cast_to_pointer_test.cpp Wed Jul 24 04:39:29 2013 (r85148)
+++ trunk/libs/conversion/test/lexical_cast_to_pointer_test.cpp 2013-07-24 04:46:08 EDT (Wed, 24 Jul 2013) (r85149)
@@ -17,7 +17,7 @@
 int test_main(int, char*[])
 {
     boost::lexical_cast<char*>("Hello");
- BOOST_CHECK(false); // suppressing warning about ‘boost::unit_test::{anonymous}::unit_test_log’ defined but not used
+ BOOST_CHECK(false); // suppressing warning about 'boost::unit_test::{anonymous}::unit_test_log' defined but not used
     return 0;
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk