|
Boost-Commit : |
From: john.groups_at_[hidden]
Date: 2007-10-31 07:59:05
Author: jtorjo
Date: 2007-10-31 07:59:04 EDT (Wed, 31 Oct 2007)
New Revision: 40621
URL: http://svn.boost.org/trac/boost/changeset/40621
Log:
[logging]
v0.9.10, 31 oct 2007
- destination::file - on linux don't add ios_base::in when not original overwrite. Many thanks to Martin Baeker!
Text files modified:
sandbox/logging/boost/logging/changelog.hpp | 3 +++
sandbox/logging/boost/logging/format/destination/file.hpp | 5 ++++-
sandbox/logging/lib/logging/samples/vc8/loggingvc8/loggingvc8.vcproj | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
Modified: sandbox/logging/boost/logging/changelog.hpp
==============================================================================
--- sandbox/logging/boost/logging/changelog.hpp (original)
+++ sandbox/logging/boost/logging/changelog.hpp 2007-10-31 07:59:04 EDT (Wed, 31 Oct 2007)
@@ -1,6 +1,9 @@
/**
@page page_changelog Changelog
+v0.9.10, 31 oct 2007
+- destination::file - on linux don't add ios_base::in when not original overwrite. Many thanks to Martin Baeker!
+
v0.9.9, 31 oct 2007
- fixed fastest*.cpp scenarios so that they compile. Many thanks to Martin Baeker!
Modified: sandbox/logging/boost/logging/format/destination/file.hpp
==============================================================================
--- sandbox/logging/boost/logging/format/destination/file.hpp (original)
+++ sandbox/logging/boost/logging/format/destination/file.hpp 2007-10-31 07:59:04 EDT (Wed, 31 Oct 2007)
@@ -31,6 +31,7 @@
#include <boost/logging/detail/manipulator.hpp>
#include <boost/logging/format/destination/convert_destination.hpp>
#include <fstream>
+#include <boost/config.hpp>
namespace boost { namespace logging { namespace destination {
@@ -63,9 +64,11 @@
std::ios_base::openmode flags = std::ios_base::out | fs.extra_flags() ;
if ( fs.do_append() )
flags |= std::ios_base::app;
+ // note: on Linux, it opens it RW , and if the file does not exist, nothing happens
+#ifndef BOOST_WINDOWS
if ( !fs.initial_overwrite() )
flags |= std::ios_base::in;
-
+#endif
return flags;
}
Modified: sandbox/logging/lib/logging/samples/vc8/loggingvc8/loggingvc8.vcproj
==============================================================================
--- sandbox/logging/lib/logging/samples/vc8/loggingvc8/loggingvc8.vcproj (original)
+++ sandbox/logging/lib/logging/samples/vc8/loggingvc8/loggingvc8.vcproj 2007-10-31 07:59:04 EDT (Wed, 31 Oct 2007)
@@ -913,7 +913,6 @@
>
<FileConfiguration
Name="Test|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -925,6 +924,7 @@
>
<FileConfiguration
Name="Test|Win32"
+ ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
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