use_vfork.hpp 781 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * use_vfork.hpp
  3. *
  4. * Created on: 17.06.2016
  5. * Author: klemens
  6. */
  7. #ifndef BOOST_PROCESS_DETAIL_POSIX_USE_VFORK_HPP_
  8. #define BOOST_PROCESS_DETAIL_POSIX_USE_VFORK_HPP_
  9. #include <boost/process/detail/posix/handler.hpp>
  10. #include <boost/fusion/sequence/intrinsic/has_key.hpp>
  11. #include <boost/fusion/container/set/convert.hpp>
  12. namespace boost { namespace process { namespace detail { namespace posix {
  13. struct use_vfork_ : handler_base_ext
  14. {
  15. constexpr use_vfork_(){};
  16. };
  17. template<typename Sequence>
  18. struct shall_use_vfork
  19. {
  20. typedef typename boost::fusion::result_of::as_set<Sequence>::type set_type;
  21. typedef typename boost::fusion::result_of::has_key<set_type, const use_vfork_&>::type type;
  22. };
  23. }}}}
  24. #endif /* BOOST_PROCESS_DETAIL_POSIX_USE_VFORK_HPP_ */