Boost C++ Libraries: Ticket #5616: No output when using a filtering_ostream pointer https://svn.boost.org/trac10/ticket/5616 <p> When creating a filtering_ostream on the heap, the output is empty. </p> <p> Following code works: </p> <pre class="wiki"> boost::regex pattern("..."); boost::iostreams::regex_filter filter(pattern,"..."); boost::iostreams::filtering_ostream out; out.push(filter); out.push(std::cout); out&lt;&lt;"I am written to std::cout"&lt;&lt;endl; </pre><p> However, following code does not. Nothing is printed on the standard output: </p> <pre class="wiki"> boost::regex pattern("..."); boost::iostreams::regex_filter filter(pattern,"..."); boost::iostreams::filtering_ostream &amp;out = *new boost::iostreams::filtering_ostream(); out.push(filter); out.push(std::cout); out&lt;&lt;"I am not written to std::cout!"&lt;&lt;endl; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5616 Trac 1.4.3