summaryrefslogtreecommitdiff
path: root/boost/process/detail/windows/pipe_out.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/process/detail/windows/pipe_out.hpp')
-rw-r--r--boost/process/detail/windows/pipe_out.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/boost/process/detail/windows/pipe_out.hpp b/boost/process/detail/windows/pipe_out.hpp
index 4cefa2fc28..125a34862d 100644
--- a/boost/process/detail/windows/pipe_out.hpp
+++ b/boost/process/detail/windows/pipe_out.hpp
@@ -13,6 +13,7 @@
#include <boost/winapi/process.hpp>
#include <boost/winapi/handles.hpp>
+#include <boost/process/detail/used_handles.hpp>
#include <boost/process/detail/handler_base.hpp>
namespace boost { namespace process { namespace detail { namespace windows {
@@ -20,10 +21,12 @@ namespace boost { namespace process { namespace detail { namespace windows {
template<int p1, int p2>
-struct pipe_out : public ::boost::process::detail::handler_base
+struct pipe_out : public ::boost::process::detail::handler_base, ::boost::process::detail::uses_handles
{
::boost::winapi::HANDLE_ handle;
+ ::boost::winapi::HANDLE_ get_used_handles() const { return handle; }
+
pipe_out(::boost::winapi::HANDLE_ handle) : handle(handle) {}
template<typename T>
pipe_out(T & p) : handle(p.native_sink())