Skip to content

Commit

Permalink
Fixed compile warning on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren authored and klemens-morgenstern committed Sep 14, 2023
1 parent 502dc48 commit 507768e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions include/boost/process/pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ struct basic_pipebuf : std::basic_streambuf<CharT, Traits>

///Destructor -> writes the frest of the data
~basic_pipebuf()
try
{
if (basic_pipebuf::is_open())
basic_pipebuf::overflow(Traits::eof());
}
catch (process_error & )
{
try
{
if (basic_pipebuf::is_open())
basic_pipebuf::overflow(Traits::eof());
}
catch (process_error & )
{
}
}

///Move construct from a pipe.
Expand Down

0 comments on commit 507768e

Please sign in to comment.