|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2008-05-26 16:15:19
Author: turkanis
Date: 2008-05-26 16:15:18 EDT (Mon, 26 May 2008)
New Revision: 45790
URL: http://svn.boost.org/trac/boost/changeset/45790
Log:
added static assert to fix issue #1580
Text files modified:
trunk/boost/iostreams/chain.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/iostreams/chain.hpp
==============================================================================
--- trunk/boost/iostreams/chain.hpp (original)
+++ trunk/boost/iostreams/chain.hpp 2008-05-26 16:15:18 EDT (Mon, 26 May 2008)
@@ -140,6 +140,10 @@
chain_base(const chain_base& rhs): pimpl_(rhs.pimpl_) { }
public:
+ // dual_use is a pseudo-mode to facilitate filter writing,
+ // not a genuine mode.
+ BOOST_STATIC_ASSERT((!is_convertible<mode, dual_use>::value));
+
//----------Buffer sizing-------------------------------------------------//
// Sets the size of the buffer created for the devices to be added to this
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