Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2008-01-14 06:38:08


Author: jtorjo
Date: 2008-01-14 06:38:08 EST (Mon, 14 Jan 2008)
New Revision: 42749
URL: http://svn.boost.org/trac/boost/changeset/42749

Log:
[logging]
v0.13.11, 14 jan 2008
- solved bug in rolling_file - it could not compile on gcc
Text files modified:
   sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp | 3 ++-
   sandbox/logging/boost/logging/format/destination/rolling_file.hpp | 2 ++
   2 files changed, 4 insertions(+), 1 deletions(-)

Modified: sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp 2008-01-14 06:38:08 EST (Mon, 14 Jan 2008)
@@ -1,7 +1,8 @@
 /**
 @page page_changelog Changelog
 
-_at_section changelog_cur_ver Current Version: v0.13.10, 12 jan 2008
+@section changelog_cur_ver Current Version: v0.13.11, 14 jan 2008
+- solved bug in rolling_file - it could not compile on gcc
 - added test_rolling_file (tests rolling_file)
 - solved bug - when used LOG_ in switch - thanks to Todd Neal!
 - added test for formatter::file

Modified: sandbox/logging/boost/logging/format/destination/rolling_file.hpp
==============================================================================
--- sandbox/logging/boost/logging/format/destination/rolling_file.hpp (original)
+++ sandbox/logging/boost/logging/format/destination/rolling_file.hpp 2008-01-14 06:38:08 EST (Mon, 14 Jan 2008)
@@ -114,6 +114,8 @@
         }
 
         void recreate_file() {
+ // many thanks to Benjamin de Dardel!
+ namespace fs = boost::filesystem;
             m_out = boost::shared_ptr< std::basic_ofstream<char_type> >(new std::basic_ofstream<char_type>( file_name(m_cur_idx).c_str(),
                 m_flags.extra_flags() | std::ios_base::out | std::ios_base::app));
             if ( fs::file_size( file_name(m_cur_idx)) > m_flags.max_size_bytes()) {


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