Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67577 - in trunk: boost/filesystem/v2 libs/filesystem/v2/src libs/filesystem/v2/test libs/filesystem/v3/src libs/filesystem/v3/test libs/filesystem/v3/test/msvc10
From: bdawes_at_[hidden]
Date: 2011-01-02 11:49:38


Author: bemandawes
Date: 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
New Revision: 67577
URL: http://svn.boost.org/trac/boost/changeset/67577

Log:
Clear several GCC 4.6 warnings. Change V2 code to use BOOST_THROW_EXCEPTION.
Text files modified:
   trunk/boost/filesystem/v2/config.hpp | 10 +++++++
   trunk/boost/filesystem/v2/operations.hpp | 56 ++++++++++++++++++++--------------------
   trunk/boost/filesystem/v2/path.hpp | 1
   trunk/libs/filesystem/v2/src/v2_operations.cpp | 1
   trunk/libs/filesystem/v2/src/v2_path.cpp | 6 ++--
   trunk/libs/filesystem/v2/test/operations_test.cpp | 12 ++++----
   trunk/libs/filesystem/v2/test/path_test.cpp | 4 +-
   trunk/libs/filesystem/v2/test/wide_test.cpp | 4 +-
   trunk/libs/filesystem/v3/src/operations.cpp | 3 ++
   trunk/libs/filesystem/v3/src/windows_file_codecvt.cpp | 6 +++
   trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln | 30 +++++++++++++++++++++
   trunk/libs/filesystem/v3/test/operations_test.cpp | 4 +-
   12 files changed, 91 insertions(+), 46 deletions(-)

Modified: trunk/boost/filesystem/v2/config.hpp
==============================================================================
--- trunk/boost/filesystem/v2/config.hpp (original)
+++ trunk/boost/filesystem/v2/config.hpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -51,6 +51,16 @@
 # endif
 # endif
 
+// throw an exception ----------------------------------------------------------------//
+//
+// Exceptions were originally thrown via boost::throw_exception().
+// As throw_exception() became more complex, it caused user error reporting
+// to be harder to interpret, since the exception reported became much more complex.
+// The immediate fix was to throw directly, wrapped in a macro to make any later change
+// easier.
+
+#define BOOST_FILESYSTEM_THROW(EX) throw EX
+
 // narrow support only for badly broken compilers or libraries -------------//
 
 # if defined(BOOST_NO_STD_WSTRING) || defined(BOOST_NO_SFINAE) || defined(BOOST_NO_STD_LOCALE) || BOOST_WORKAROUND(__BORLANDC__, <0x610)

Modified: trunk/boost/filesystem/v2/operations.hpp
==============================================================================
--- trunk/boost/filesystem/v2/operations.hpp (original)
+++ trunk/boost/filesystem/v2/operations.hpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -259,7 +259,7 @@
       system::error_code ec;
       file_status result( detail::status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
         "boost::filesystem::status", ph, ec ) );
       return result;
     }
@@ -278,7 +278,7 @@
       system::error_code ec;
       file_status result( symlink_status( ph, ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
         "boost::filesystem::symlink_status", ph, ec ) );
       return result;
     }
@@ -293,7 +293,7 @@
       system::error_code ec;
       file_status result( detail::status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::exists", ph, ec ) );
       return exists( result );
     }
@@ -303,7 +303,7 @@
       system::error_code ec;
       file_status result( detail::status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::is_directory", ph, ec ) );
       return is_directory( result );
     }
@@ -313,7 +313,7 @@
       system::error_code ec;
       file_status result( detail::status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::is_regular_file", ph, ec ) );
       return is_regular_file( result );
     }
@@ -324,7 +324,7 @@
       system::error_code ec;
       file_status result( detail::status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::is_regular", ph, ec ) );
       return is_regular( result );
     }
@@ -335,7 +335,7 @@
       system::error_code ec;
       file_status result( detail::status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::is_other", ph, ec ) );
       return is_other( result );
     }
@@ -351,7 +351,7 @@
       system::error_code ec;
       file_status result( detail::symlink_status_api( ph.external_file_string(), ec ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::is_symlink", ph, ec ) );
       return is_symlink( result );
 # endif
@@ -370,7 +370,7 @@
       detail::query_pair result(
         detail::is_empty_api( ph.external_file_string() ) );
       if ( result.first )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::is_empty", ph, result.first ) );
       return result.second;
     }
@@ -380,7 +380,7 @@
       detail::query_pair result( detail::equivalent_api(
         ph1.external_file_string(), ph2.external_file_string() ) );
       if ( result.first )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::equivalent", ph1, ph2, result.first ) );
       return result.second;
     }
@@ -390,7 +390,7 @@
       detail::uintmax_pair result
         ( detail::file_size_api( ph.external_file_string() ) );
       if ( result.first )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::file_size", ph, result.first ) );
       return result.second;
     }
@@ -400,7 +400,7 @@
       detail::space_pair result
         ( detail::space_api( ph.external_file_string() ) );
       if ( result.first )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::space", ph, result.first ) );
       return result.second;
     }
@@ -410,7 +410,7 @@
       detail::time_pair result
         ( detail::last_write_time_api( ph.external_file_string() ) );
       if ( result.first )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::last_write_time", ph, result.first ) );
       return result.second;
     }
@@ -423,7 +423,7 @@
       detail::query_pair result(
         detail::create_directory_api( dir_ph.external_directory_string() ) );
       if ( result.first )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::create_directory",
           dir_ph, result.first ) );
       return result.second;
@@ -438,7 +438,7 @@
           to_ph.external_file_string(),
           from_ph.external_file_string() ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::create_hard_link",
           to_ph, from_ph, ec ) );
     }
@@ -462,7 +462,7 @@
           to_ph.external_file_string(),
           from_ph.external_file_string() ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::create_symlink",
           to_ph, from_ph, ec ) );
     }
@@ -482,7 +482,7 @@
       system::error_code ec;
       file_status f = symlink_status( ph, ec );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::remove", ph, ec ) );
       return detail::remove_aux( ph, f );
     }
@@ -492,7 +492,7 @@
       system::error_code ec;
       file_status f = symlink_status( ph, ec );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::remove_all", ph, ec ) );
       return exists( f ) ? detail::remove_all_aux( ph, f ) : 0;
     }
@@ -503,7 +503,7 @@
         from_path.external_directory_string(),
         to_path.external_directory_string() ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::rename",
           from_path, to_path, ec ) );
     }
@@ -519,7 +519,7 @@
         from_path.external_directory_string(),
         to_path.external_directory_string(), option == copy_option::fail_if_exists ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::copy_file",
           from_path, to_path, ec ) );
     }
@@ -530,7 +530,7 @@
       typename Path::external_string_type ph;
       system::error_code ec( detail::get_current_path_api( ph ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
             "boost::filesystem::current_path", ec ) );
       return Path( Path::traits_type::to_internal( ph ) );
     }
@@ -540,7 +540,7 @@
       system::error_code ec( detail::set_current_path_api(
         ph.external_directory_string() ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
             "boost::filesystem::current_path", ph, ec ) );
     }
 
@@ -568,7 +568,7 @@
       system::error_code ec( detail::get_full_path_name_api( ph.external_file_string(),
               sys_ph ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
             "boost::filesystem::system_complete", ph, ec ) );
       return Path( Path::traits_type::to_internal( sys_ph ) );
 # else
@@ -607,7 +607,7 @@
       system::error_code ec( detail::last_write_time_api( ph.external_file_string(),
           new_time ) );
       if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::last_write_time", ph, ec ) );
     }
 
@@ -783,7 +783,7 @@
         {
           system::error_code ec = remove_api( ph.external_file_string() );
           if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
               "boost::filesystem::remove", ph, ec ) );
           return true;
         }
@@ -804,7 +804,7 @@
             boost::system::error_code ec;
             boost::filesystem2::file_status fn = boost::filesystem2::symlink_status( itr->path(), ec );
             if ( ec )
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
                 "boost::filesystem:remove_all", ph, ec ) );
             count += remove_all_aux( itr->path(), fn );
           }
@@ -981,7 +981,7 @@
       system::error_code ec( m_init(dir_path) );
       if ( ec )
       {
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
           "boost::filesystem::basic_directory_iterator constructor",
           dir_path, ec ) );
       }
@@ -1014,7 +1014,7 @@
           name, fs, symlink_fs );
         if ( ec )
         {
- boost::throw_exception( basic_filesystem_error<Path>(
+ BOOST_FILESYSTEM_THROW( basic_filesystem_error<Path>(
             "boost::filesystem::basic_directory_iterator increment",
             m_imp->m_directory_entry.path().parent_path(), ec ) );
         }

Modified: trunk/boost/filesystem/v2/path.hpp
==============================================================================
--- trunk/boost/filesystem/v2/path.hpp (original)
+++ trunk/boost/filesystem/v2/path.hpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -20,7 +20,6 @@
 #include <boost/filesystem/v2/config.hpp>
 #include <boost/system/system_error.hpp>
 #include <boost/iterator/iterator_facade.hpp>
-#include <boost/throw_exception.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/static_assert.hpp>

Modified: trunk/libs/filesystem/v2/src/v2_operations.cpp
==============================================================================
--- trunk/libs/filesystem/v2/src/v2_operations.cpp (original)
+++ trunk/libs/filesystem/v2/src/v2_operations.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -44,7 +44,6 @@
 
 #include <boost/filesystem/v2/operations.hpp>
 #include <boost/scoped_array.hpp>
-#include <boost/throw_exception.hpp>
 #include <boost/assert.hpp>
 #include <boost/detail/workaround.hpp>
 #include <cstdlib> // for malloc, free

Modified: trunk/libs/filesystem/v2/src/v2_path.cpp
==============================================================================
--- trunk/libs/filesystem/v2/src/v2_path.cpp (original)
+++ trunk/libs/filesystem/v2/src/v2_path.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -86,7 +86,7 @@
 
     void wpath_traits::imbue( const std::locale & new_loc )
     {
- if ( locked ) boost::throw_exception(
+ if ( locked ) BOOST_FILESYSTEM_THROW(
         wfilesystem_error(
           "boost::filesystem::wpath_traits::imbue() after lockdown",
           make_error_code( system::errc::not_supported ) ) );
@@ -144,7 +144,7 @@
       if ( converter()->out(
         state, src.c_str(), src.c_str()+src.size(), from_next, work.get(),
         work.get()+work_size, to_next ) != std::codecvt_base::ok )
- boost::throw_exception( boost::filesystem::wfilesystem_error(
+ BOOST_FILESYSTEM_THROW( boost::filesystem::wfilesystem_error(
           "boost::filesystem::wpath::to_external conversion error",
           ph, system::error_code( system::errc::invalid_argument, system::system_category() ) ) );
       *to_next = '\0';
@@ -163,7 +163,7 @@
       if ( converter()->in(
         state, src.c_str(), src.c_str()+src.size(), from_next, work.get(),
         work.get()+work_size, to_next ) != std::codecvt_base::ok )
- boost::throw_exception( boost::filesystem::wfilesystem_error(
+ BOOST_FILESYSTEM_THROW( boost::filesystem::wfilesystem_error(
           "boost::filesystem::wpath::to_internal conversion error",
           system::error_code( system::errc::invalid_argument, system::system_category() ) ) );
       *to_next = L'\0';

Modified: trunk/libs/filesystem/v2/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/v2/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/v2/test/operations_test.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -80,8 +80,8 @@
   {
     std::ofstream f( ph.file_string().c_str() );
     if ( !f )
- throw fs::filesystem_error( "operations_test create_file",
- ph, error_code(errno, system_category()) );
+ BOOST_FILESYSTEM_THROW( fs::filesystem_error( "operations_test create_file",
+ ph, error_code(errno, system_category()) ) );
     if ( !contents.empty() ) f << contents;
   }
 
@@ -89,13 +89,13 @@
   {
     std::ifstream f( ph.file_string().c_str() );
     if ( !f )
- throw fs::filesystem_error( "operations_test verify_file",
- ph, error_code(errno, system_category()) );
+ BOOST_FILESYSTEM_THROW( fs::filesystem_error( "operations_test verify_file",
+ ph, error_code(errno, system_category()) ) );
     std::string contents;
     f >> contents;
     if ( contents != expected )
- throw fs::filesystem_error( "operations_test verify_file contents \""
- + contents + "\" != \"" + expected + "\"", ph, error_code() );
+ BOOST_FILESYSTEM_THROW( fs::filesystem_error( "operations_test verify_file contents \""
+ + contents + "\" != \"" + expected + "\"", ph, error_code() ) );
   }
 
   template< typename F >

Modified: trunk/libs/filesystem/v2/test/path_test.cpp
==============================================================================
--- trunk/libs/filesystem/v2/test/path_test.cpp (original)
+++ trunk/libs/filesystem/v2/test/path_test.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -90,7 +90,7 @@
   {
     const std::string str_1("string-1");
     boost::system::error_code ec( 12345, boost::system::system_category());
- try { throw fs::filesystem_error( str_1, ec ); }
+ try { BOOST_FILESYSTEM_THROW( fs::filesystem_error( str_1, ec ) ); }
     catch ( const fs::filesystem_error & ex )
     {
       //std::cout << ex.what() << "*" << std::endl;
@@ -99,7 +99,7 @@
       BOOST_TEST( ex.code() == ec );
     }
 
- try { throw fs::filesystem_error( str_1, "p1", "p2", ec ); }
+ try { BOOST_FILESYSTEM_THROW( fs::filesystem_error( str_1, "p1", "p2", ec ) ); }
     catch ( const fs::filesystem_error & ex )
     {
       //std::cout << ex.what() << "*" << std::endl;

Modified: trunk/libs/filesystem/v2/test/wide_test.cpp
==============================================================================
--- trunk/libs/filesystem/v2/test/wide_test.cpp (original)
+++ trunk/libs/filesystem/v2/test/wide_test.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -57,9 +57,9 @@
     std::ofstream f( ph.external_file_string().c_str() );
 # endif
     if ( !f )
- throw fs::basic_filesystem_error<Path>( "wide_test create_file",
+ BOOST_FILESYSTEM_THROW( fs::basic_filesystem_error<Path>( "wide_test create_file",
         ph,
- boost::system::error_code( errno, boost::system::generic_category() ) );
+ boost::system::error_code( errno, boost::system::generic_category() ) ) );
     if ( !contents.empty() ) f << contents;
   }
 

Modified: trunk/libs/filesystem/v3/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/v3/src/operations.cpp (original)
+++ trunk/libs/filesystem/v3/src/operations.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -148,6 +148,9 @@
 #define REPARSE_DATA_BUFFER_HEADER_SIZE \
   FIELD_OFFSET(REPARSE_DATA_BUFFER, GenericReparseBuffer)
 
+#endif
+
+#ifndef MAXIMUM_REPARSE_DATA_BUFFER_SIZE
 #define MAXIMUM_REPARSE_DATA_BUFFER_SIZE ( 16 * 1024 )
 #endif
 

Modified: trunk/libs/filesystem/v3/src/windows_file_codecvt.cpp
==============================================================================
--- trunk/libs/filesystem/v3/src/windows_file_codecvt.cpp (original)
+++ trunk/libs/filesystem/v3/src/windows_file_codecvt.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -31,7 +31,11 @@
 
 #include "windows_file_codecvt.hpp"
 
-#define WINVER 0x0500 // MinGW for GCC 4.4 requires this
+// Versions of MinGW prior to GCC 4.6 requires this
+#ifndef WINVER
+# define WINVER 0x0500
+#endif
+
 #include <windows.h>
 
   std::codecvt_base::result windows_file_codecvt::do_in(

Modified: trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln
==============================================================================
--- trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln (original)
+++ trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -35,6 +35,24 @@
                 {FFD738F7-96F0-445C-81EA-551665EF53D1} = {FFD738F7-96F0-445C-81EA-551665EF53D1}
         EndProjectSection
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tut5", "tut5\tut5.vcxproj", "{5C9B3380-3C6E-45CC-986A-16D245E27E58}"
+ ProjectSection(ProjectDependencies) = postProject
+ {F94CCADD-A90B-480C-A304-C19D015D36B1} = {F94CCADD-A90B-480C-A304-C19D015D36B1}
+ {FFD738F7-96F0-445C-81EA-551665EF53D1} = {FFD738F7-96F0-445C-81EA-551665EF53D1}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tut6a", "tut6a\tut6a.vcxproj", "{C781F9C4-31D4-4509-B031-84DB598B207D}"
+ ProjectSection(ProjectDependencies) = postProject
+ {F94CCADD-A90B-480C-A304-C19D015D36B1} = {F94CCADD-A90B-480C-A304-C19D015D36B1}
+ {FFD738F7-96F0-445C-81EA-551665EF53D1} = {FFD738F7-96F0-445C-81EA-551665EF53D1}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tut6b", "tut6b\tut6b.vcxproj", "{4A77CA6A-8E72-4CC6-9FE7-2C555C51815C}"
+ ProjectSection(ProjectDependencies) = postProject
+ {F94CCADD-A90B-480C-A304-C19D015D36B1} = {F94CCADD-A90B-480C-A304-C19D015D36B1}
+ {FFD738F7-96F0-445C-81EA-551665EF53D1} = {FFD738F7-96F0-445C-81EA-551665EF53D1}
+ EndProjectSection
+EndProject
 Global
         GlobalSection(SolutionConfigurationPlatforms) = preSolution
                 Debug|Win32 = Debug|Win32
@@ -98,6 +116,18 @@
                 {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Debug|Win32.ActiveCfg = Release|Win32
                 {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Release|Win32.ActiveCfg = Release|Win32
                 {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Release|Win32.Build.0 = Release|Win32
+ {5C9B3380-3C6E-45CC-986A-16D245E27E58}.Debug|Win32.ActiveCfg = Debug|Win32
+ {5C9B3380-3C6E-45CC-986A-16D245E27E58}.Debug|Win32.Build.0 = Debug|Win32
+ {5C9B3380-3C6E-45CC-986A-16D245E27E58}.Release|Win32.ActiveCfg = Release|Win32
+ {5C9B3380-3C6E-45CC-986A-16D245E27E58}.Release|Win32.Build.0 = Release|Win32
+ {C781F9C4-31D4-4509-B031-84DB598B207D}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C781F9C4-31D4-4509-B031-84DB598B207D}.Debug|Win32.Build.0 = Debug|Win32
+ {C781F9C4-31D4-4509-B031-84DB598B207D}.Release|Win32.ActiveCfg = Release|Win32
+ {C781F9C4-31D4-4509-B031-84DB598B207D}.Release|Win32.Build.0 = Release|Win32
+ {4A77CA6A-8E72-4CC6-9FE7-2C555C51815C}.Debug|Win32.ActiveCfg = Debug|Win32
+ {4A77CA6A-8E72-4CC6-9FE7-2C555C51815C}.Debug|Win32.Build.0 = Debug|Win32
+ {4A77CA6A-8E72-4CC6-9FE7-2C555C51815C}.Release|Win32.ActiveCfg = Release|Win32
+ {4A77CA6A-8E72-4CC6-9FE7-2C555C51815C}.Release|Win32.Build.0 = Release|Win32
         EndGlobalSection
         GlobalSection(SolutionProperties) = preSolution
                 HideSolutionNode = FALSE

Modified: trunk/libs/filesystem/v3/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/operations_test.cpp 2011-01-02 11:49:28 EST (Sun, 02 Jan 2011)
@@ -1187,12 +1187,12 @@
     BOOST_TEST(copy_ex_ok);
 
     create_file(d1 / "f2", "1234567890");
- BOOST_TEST_EQ(fs::file_size(d1 / "f2"), 10);
+ BOOST_TEST_EQ(fs::file_size(d1 / "f2"), 10U);
     copy_ex_ok = true;
     try { fs::copy_file(f1, d1 / "f2", fs::copy_option::overwrite_if_exists); }
     catch (const fs::filesystem_error &) { copy_ex_ok = false; }
     BOOST_TEST(copy_ex_ok);
- BOOST_TEST_EQ(fs::file_size(d1 / "f2"), 7);
+ BOOST_TEST_EQ(fs::file_size(d1 / "f2"), 7U);
     verify_file(d1 / "f2", "file-f1");
   }
 


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