diff --git a/include/boost/iostreams/device/container.hpp b/include/boost/iostreams/device/container.hpp deleted file mode 100755 index c2fa337..0000000 --- a/include/boost/iostreams/device/container.hpp +++ /dev/null @@ -1,67 +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. - -#ifndef BOOST_IOSTREAMS_CONTAINER_HPP_INCLUDED -#define BOOST_IOSTREAMS_CONTAINER_HPP_INCLUDED - -#include -#include -#include -#include -#include -#include -#include - -namespace boost { namespace iostreams { - -namespace detail { - -template -struct container_device_traits { - typedef typename Container::iterator iterator; - typedef typename iterator_traversal::type trav; - typedef typename - mpl::if_< - is_convertible, - random_access_container_adapter, - forward_container_adapter - >::type type; - BOOST_STATIC_ASSERT(( - is_convertible::value - )); -}; - -} // End namespace detail. - -template -class container_device - : public detail::container_device_traits::type -{ -private: - typedef detail::container_device_traits my_traits; - typedef typename my_traits::type base_type; -public: - typedef Container container_type; - typedef typename Container::value_type char_type; - struct category - : device_tag, - Mode - { }; - container_device() { } - : base_type(new Container, true) - { } - container_device(const Container& cnt) - : base_type(new Container(cnt), true) - { } - container_device(const reference_wrapper& ref) - : base_type(ref.get_pointer(), false) - { } - // Inherits read, write, seek and container. -}; - -} } // End namespaces iostreams, boost. - -#endif // #ifndef BOOST_IOSTREAMS_CONTAINER_HPP_INCLUDED diff --git a/include/boost/iostreams/device/container_device.hpp b/include/boost/iostreams/device/container_device.hpp deleted file mode 100755 index 2c564af..0000000 --- a/include/boost/iostreams/device/container_device.hpp +++ /dev/null @@ -1,62 +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. - -#ifndef BOOST_IOSTREAMS_CONTAINER_DEVICE_HPP_INCLUDED -#define BOOST_IOSTREAMS_CONTAINER_DEVICE_HPP_INCLUDED - -#include -#include -#include -#include -#include -#include -#include - -namespace boost { namespace iostreams { - -namespace detail { - -template -struct container_traits { - typedef typename Container::iterator iterator; - typedef typename iterator_traversal::type trav; - typedef typename - mpl::if_< - is_convertible, - random_access_container_adapter, - forward_container_adapter - >::type type; - BOOST_STATIC_ASSERT(( - is_convertible::value - )); -}; - -} // End namespace detail. - -template -class container_device - : public detail::container_traits::type -{ -private: - typedef detail::container_traits my_traits; - typedef typename my_traits::type base_type; -public: - typedef Container container_type; - typedef typename Container::value_type char_type; - struct category - : device_tag, - Mode - { }; - container_device() { } - container_device(const Container& cnt) : base_type(cnt) { } - container_device(const reference_wrapper& ref) - : base_type(ref) { } - // Inherits read, write, seek and container. -}; - -} } // End namespaces iostreams, boost. - -#endif // #ifndef BOOST_IOSTREAMS_CONTAINER_DEVICE_HPP_INCLUDED