How to pipe into std::cout with boost::iostreams

前端 未结 3 1753
小蘑菇
小蘑菇 2021-01-14 05:16

I am new to boost::iostreams so this might be trivial:

Assuming namespace io = boost::iostreams;

this works

io::fil         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-14 05:51

    That's not the way you pass the stream. You have to use push:

    out.push(std::cout);
    

提交回复
热议问题