Changeset b40b987 for launchers/macosx/include/subprocess.hpp
- Timestamp:
- Sep 30, 2018 9:32:49 AM (2 years ago)
- Branches:
- master
- Children:
- ae0d420
- Parents:
- e8d371e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
launchers/macosx/include/subprocess.hpp
re8d371e rb40b987 35 35 #define SUBPROCESS_HPP 36 36 37 #ifdef __cplusplus 38 37 39 #include <map> 38 40 #include <algorithm> … … 698 700 699 701 template <typename F> 700 struct has_type<F, param_pack<> > {702 struct has_type<F, param_pack<> > { 701 703 static constexpr bool value = false; 702 704 }; 703 705 704 706 template <typename F, typename... T> 705 struct has_type<F, param_pack<F, T...> > {707 struct has_type<F, param_pack<F, T...> > { 706 708 static constexpr bool value = true; 707 709 }; 708 710 709 711 template <typename F, typename H, typename... T> 710 struct has_type<F, param_pack<H,T...> > {712 struct has_type<F, param_pack<H,T...> > { 711 713 static constexpr bool value = 712 std::is_same<F, typename std::decay<H>::type>::value ? true : has_type<F, param_pack<T...> >::value;714 std::is_same<F, typename std::decay<H>::type>::value ? true : has_type<F, param_pack<T...> >::value; 713 715 }; 714 716 … … 1529 1531 OutBuffer check_output_impl(F& farg, Args&&... args) 1530 1532 { 1531 static_assert(!detail::has_type<output, detail::param_pack<Args...> >::value, "output not allowed in args");1533 static_assert(!detail::has_type<output, detail::param_pack<Args...> >::value, "output not allowed in args"); 1532 1534 auto p = Popen(std::forward<F>(farg), std::forward<Args>(args)..., output{PIPE}); 1533 1535 auto res = p.communicate(); … … 1628 1630 }; 1629 1631 1632 #endif // __cplusplus 1633 1630 1634 #endif // SUBPROCESS_HPP
Note: See TracChangeset
for help on using the changeset viewer.