operations_fwd.hpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
  2. // (C) Copyright 2003-2007 Jonathan Turkanis
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
  5. // See http://www.boost.org/libs/iostreams for documentation.
  6. #ifndef BOOST_IOSTREAMS_OPERATIONS_FWD_HPP_INCLUDED
  7. #define BOOST_IOSTREAMS_OPERATIONS_FWD_HPP_INCLUDED
  8. #if defined(_MSC_VER)
  9. # pragma once
  10. #endif
  11. #include <boost/mpl/not.hpp>
  12. #include <boost/type_traits/is_base_and_derived.hpp>
  13. namespace boost { namespace iostreams {
  14. template<typename T>
  15. struct operations;
  16. namespace detail {
  17. struct custom_tag { };
  18. template<typename T>
  19. struct is_custom
  20. : mpl::not_<
  21. is_base_and_derived< custom_tag, operations<T> >
  22. >
  23. { };
  24. } // End namespace detail.
  25. template<typename T>
  26. struct operations : detail::custom_tag { };
  27. } } // End namespaces iostreams, boost.
  28. #endif // #ifndef BOOST_IOSTREAMS_OPERATIONS_FWD_HPP_INCLUDED //--------------//