|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58843 - in branches/release: boost/iostreams boost/iostreams/detail/adapter boost/iostreams/detail/config libs/iostreams libs/iostreams/doc
From: daniel_james_at_[hidden]
Date: 2010-01-09 12:17:01
Author: danieljames
Date: 2010-01-09 12:17:01 EST (Sat, 09 Jan 2010)
New Revision: 58843
URL: http://svn.boost.org/trac/boost/changeset/58843
Log:
Merge iostreams. Release notes + more support for sun.
Added:
branches/release/boost/iostreams/detail/config/unreachable_return.hpp
- copied unchanged from r58842, /trunk/boost/iostreams/detail/config/unreachable_return.hpp
Properties modified:
branches/release/boost/iostreams/ (props changed)
branches/release/libs/iostreams/ (props changed)
Text files modified:
branches/release/boost/iostreams/checked_operations.hpp | 16 +++++--
branches/release/boost/iostreams/detail/adapter/concept_adapter.hpp | 9 ---
branches/release/libs/iostreams/doc/release_notes.html | 85 +++++++++++++++++++++++++++++++++++++++
3 files changed, 96 insertions(+), 14 deletions(-)
Modified: branches/release/boost/iostreams/checked_operations.hpp
==============================================================================
--- branches/release/boost/iostreams/checked_operations.hpp (original)
+++ branches/release/boost/iostreams/checked_operations.hpp 2010-01-09 12:17:01 EST (Sat, 09 Jan 2010)
@@ -14,6 +14,7 @@
#include <boost/iostreams/categories.hpp>
#include <boost/iostreams/detail/dispatch.hpp>
#include <boost/iostreams/detail/error.hpp>
+#include <boost/iostreams/detail/config/unreachable_return.hpp>
#include <boost/iostreams/get.hpp>
#include <boost/iostreams/put.hpp>
#include <boost/iostreams/read.hpp>
@@ -94,24 +95,28 @@
template<typename T>
static bool put(T&, typename char_type_of<T>::type)
- { boost::throw_exception(cant_write()); }
+ { boost::throw_exception(cant_write());
+ BOOST_IOSTREAMS_UNREACHABLE_RETURN(false) }
template<typename T>
static std::streamsize
write(T&, const typename char_type_of<T>::type*, std::streamsize)
- { boost::throw_exception(cant_write()); }
+ { boost::throw_exception(cant_write());
+ BOOST_IOSTREAMS_UNREACHABLE_RETURN(0) }
};
template<>
struct read_write_if_impl<output> {
template<typename T>
static typename int_type_of<T>::type get(T&)
- { boost::throw_exception(cant_read()); }
+ { boost::throw_exception(cant_read());
+ BOOST_IOSTREAMS_UNREACHABLE_RETURN(0) }
template<typename T>
static std::streamsize
read(T&, typename char_type_of<T>::type*, std::streamsize)
- { boost::throw_exception(cant_read()); }
+ { boost::throw_exception(cant_read());
+ BOOST_IOSTREAMS_UNREACHABLE_RETURN(0) }
template<typename T>
static bool put(T& t, typename char_type_of<T>::type c)
@@ -140,7 +145,8 @@
template<typename T>
static std::streampos
seek(T&, stream_offset, BOOST_IOS::seekdir, BOOST_IOS::openmode)
- { boost::throw_exception(cant_seek()); }
+ { boost::throw_exception(cant_seek());
+ BOOST_IOSTREAMS_UNREACHABLE_RETURN(std::streampos()) }
};
} // End namespace detail.
Modified: branches/release/boost/iostreams/detail/adapter/concept_adapter.hpp
==============================================================================
--- branches/release/boost/iostreams/detail/adapter/concept_adapter.hpp (original)
+++ branches/release/boost/iostreams/detail/adapter/concept_adapter.hpp 2010-01-09 12:17:01 EST (Sat, 09 Jan 2010)
@@ -17,6 +17,7 @@
#include <boost/iostreams/detail/dispatch.hpp>
#include <boost/iostreams/detail/error.hpp>
#include <boost/iostreams/detail/streambuf.hpp> // pubsync.
+#include <boost/iostreams/detail/config/unreachable_return.hpp>
#include <boost/iostreams/device/null.hpp>
#include <boost/iostreams/traits.hpp>
#include <boost/iostreams/operations.hpp>
@@ -27,14 +28,6 @@
// Must come last.
#include <boost/iostreams/detail/config/disable_warnings.hpp> // MSVC.
-// If Boost.Exception has BOOST_ATTRIBUTE_NORETURN
-#if defined(_MSC_VER) || defined(__GNUC__)
-#define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
- BOOST_UNREACHABLE_RETURN(x)
-#else
-#define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
- return x;
-#endif
namespace boost { namespace iostreams { namespace detail {
Modified: branches/release/libs/iostreams/doc/release_notes.html
==============================================================================
--- branches/release/libs/iostreams/doc/release_notes.html (original)
+++ branches/release/libs/iostreams/doc/release_notes.html 2010-01-09 12:17:01 EST (Sat, 09 Jan 2010)
@@ -14,6 +14,89 @@
<!-- End Banner -->
+<h4>1.42</h4>
+
+<p>
+Fixed many outstanding issues. Thanks to Richard Smith for mworking on a lot
+of these changes.
+</p>
+
+<ul>
+ <li>
+ Allocate exceptions on the stack, not the heap (#3612).
+ </li>
+ <li>
+ Fix unthrown exceptions. (#3311).
+ </li>
+ <li>
+ Use <code>boost::throw_exception</code> to throw exceptions
+ (#2094).
+ </li>
+ <li>
+ Add missing include guard (#3010).
+ </li>
+ <li>
+ Use the correct type for buffer_size and pback_size parameters (#2894).
+ </li>
+ <li>
+ Support <code>boost::ref(std::istream)</code> in code_converter (#3011).
+ </li>
+ <li>
+ Fix CRC on x64 during gzip decompression (#3352).
+ </li>
+ <li>
+ Fix mapped file errors in windows (#3505).
+ </li>
+ <li>
+ Improved support for Visual C++ 2010.
+ </li>
+ <li>
+ Fix usage requirements in boost build.
+ </li>
+ <li>
+ Fix some boundary checks in <code>restrict</code> and <code>slice</code>.
+ </li>
+ <li>
+ Some minor documentation fixes.
+ </li>
+ <li>
+ Avoid Apple macro substitutions for <code>check</code>.
+ </li>
+</ul>
+
+<h4>1.41</h4>
+
+<p>
+Some old unreleased developments. There are still several open issues that
+should be fixed in the next version.
+</p>
+<ul>
+ <li>
+ Add a grep filter (#1627).
+ </li>
+ <li>
+ Support archives with multiple members (#1896).
+ </li>
+ <li>
+ Make <code><span class="identifier">tee</span></code> work with input
+ streams (#791).
+ </li>
+ <li>
+ Improved filesystem interoperability.
+ </li>
+ <li>
+ Several warnings fixed or suppressed (including
+ #1618,
+ #1875,
+ #2779).
+ </li>
+ <li>
+ Various other fixes (including
+ #1580,
+ #1671).
+ </li>
+</ul>
+
<h3>1.35</h3>
<P>1. The semantics of close
has been modified:</P>
@@ -25,7 +108,7 @@
<LI>Generic streams and stream buffers and filtering streams and stream buffers are now Closable. For filtering streams and stream buffers, <CODE>close</CODE> calls pop
.
</UL>
-<P><I>These changes will break some existing code</I>. They were necessary to resolve inconsistencies in the prior specification that resulted in a number of reported bugs.</P>
+<P><EM>These changes will break some existing code</EM>. They were necessary to resolve inconsistencies in the prior specification that resulted in a number of reported bugs.</P>
<P>2. The function template slice
has been introduced as an alias of restrict
, for platforms that treat <code>restrict</code> as a keyword.</P>
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