id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 13207,boost::spirit::istream_iterator unusable with boost::asio::ip::tcp::iostream,Christoper Friedt ,Joel de Guzman,"Hi, I'm really looking forward to using boost::spirit in my next project. Unfortunately, I seem to have hit a roadblock in that the boost::spirit::istream_iterator constructor completely locks up when it is passed a boost::asio::ip::tcp::iostream reference. I come from a (much stronger) C background, so perhaps I'm missing the greater picture, but in the ""spirit"" of a C++ stream-based API, I would have thought that any input stream would work with spirit's forward iterator - at least that's how I interpreted the documentation. A really simple example is the following: {{{ #include #include #include int main( int argc, char *argv[] ) { static const int port = 443; if ( 2 != argc ) { std::cout << ""usage: "" << argv[ 0 ] << "" "" << std::endl; std::cout << std::endl; std::cout << ""where is e.g. www.google.ca"" << std::endl; return 0; } std::string fqdn( argv[ 1 ] ); std::cout << ""creating fds.."" << std::endl; boost::asio::ip::tcp::iostream fds( fqdn, std::to_string( port ) ); if ( ! fds ) { std::cerr << ""unable to create fds: "" << fds.error().message() << std::endl; return 1; } std::cout << ""creating istream_iterator.."" << std::endl; boost::spirit::istream_iterator begin( fds ); std::cout << ""created istream_iterator!"" << std::endl; return 0; } }}} Compile with g++ -std=c++14 -o foo foo.cpp -lboost_system Any thoughts?",Bugs,new,To Be Determined,spirit,Boost 1.65.0,Showstopper,,istream_iterator,