It's useful to clone std handles when creating streams to write/read to standard streams. As the stream we give handle to assumes the handle ownership, it'd close the std handles in stream destructor. Signed-off-by: Simon Rozman <simon@rozman.si>
Languages
C++
100%