Is there any difference between C and C++ pipes implementation? Is there any C++ library that makes using pipes easier? I ask those questions because there are many 'wrapper' classes in C++ that wraps C (like string, vector etc.) Is there anything that 'wraps' pipes?
Jump to Post
Is there anything that 'wraps' pipes?
i do not know of any, but it is very easy to roll out one of our own. eg.
[code=c++]#includeinclude <boost/iostreams/device/file_descriptor.hpp>include <boost/iostreams/stream.hpp>includeinclude
using namespace boost::iostreams ;
struct opipestream : stream< file_descriptor_sink …
All 5 Replies
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.