diff --git a/include/boost/iostreams/detail/compose.hpp b/include/boost/iostreams/detail/compose.hpp deleted file mode 100755 index d4391ef..0000000 --- a/include/boost/iostreams/detail/compose.hpp +++ /dev/null @@ -1,91 +0,0 @@ -// (C) Copyright Jonathan Turkanis 2003. -// Distributed under the Boost Software License, Version 1.0. (See accompanying -// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) - -// See http://www.boost.org/libs/iostreams for documentation. - -// Contains the definition of the class template access_control, which -// allows the type of inheritance from a provided base class to be specified -// using a template parameter. - -#ifndef BOOST_IOSTREAMS_DETAIL_COMPOSE_HPP_INCLUDED -#define BOOST_IOSTREAMS_DETAIL_COMPOSE_HPP_INCLUDED - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -#include -#include -#include -#include -#include - -namespace boost { namespace iostreams { namespace detail { - -template -struct composition { - typedef BOOST_IOSTREAMS_CAR_TYPE(Concept) char_type; - typedef typename - mpl::if_< - is_filter, - filter_tag, - device_tag - >::type base_tag; - typedef typename - mpl::if_< - is_filter, - filter_tag, - device_tag - >::type mode_tag; - struct category1 - : base_tag, - dual_use_tag, - closable_tag, - localizable_tag - { }; - - - - - -}; - -struct null_piper { - template - void push(Chain& chn) const { } -}; - -template -struct piper { - piper(const Concept& concept) - : p_(0), concept_(&concept) - { - BOOST_STATIC_ASSERT((is_same::value)); - } - piper(const Piper& p, const Concept& concept) - : p_(&p), concept_(&concept) - { - BOOST_STATIC_ASSERT((!is_same::value)); - } - template - void push(Chain& chn) const - { - if (p_) p_->push(chn); - chn.push(*concept_); - } - const Piper* p_; - const Concept* concept_; -}; - -template -piper, Concept> -operator|(const piper& p, const Concept& cpt) -{ - BOOST_STATIC_ASSERT(is_filter::value); - return piper, Concept>(p, cpt); -} - -} } } // End namespaces iostreams, boost. - -#endif // #ifndef BOOST_IOSTREAMS_DETAIL_COMPOSE_HPP_INCLUDED