Boost C++ Libraries: Ticket #13431: ncurses.h and boost.asio problem https://svn.boost.org/trac10/ticket/13431 <p> Hi, I got the latest boost library (1.66) and tried to compile my old project. The file that I have the errors has #include &lt;ncurses.h&gt; I get a bunch of errors related to timeout() call. To reproduce: </p> <p> #include &lt;boost/asio.hpp&gt; #include &lt;ncurses.h&gt; </p> <p> /boost_release_1_66/include/boost/asio/basic_socket_streambuf.hpp:586:7: error: ‘stdscr’ is not a type </p> <blockquote> <p> int timeout() const </p> </blockquote> <p> Looking to the history I see that it was a similar issue but was fixed, and now in the latest release this issue is back. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13431 Trac 1.4.3 saszasta@… Tue, 13 Mar 2018 09:29:17 GMT <link>https://svn.boost.org/trac10/ticket/13431#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13431#comment:1</guid> <description> <p> I also have this exact problem. </p> <p> boost 1.66.0-1; ncurses 6.1-3 </p> <pre class="wiki">In file included from test_controller.cpp:2:0: /usr/include/boost/asio/basic_socket_streambuf.hpp:586:7: error: ‘stdscr’ is not a type int timeout() const ^ /usr/include/boost/asio/basic_socket_streambuf.hpp:586:7: error: expected identifier before ‘(’ token int timeout() const ^ /usr/include/boost/asio/basic_socket_streambuf.hpp: In member function ‘std::basic_streambuf&lt;char&gt;::int_type boost::asio::basic_socket_streambuf&lt;Protocol, Clock, WaitTraits&gt;::underflow()’: /usr/include/boost/asio/basic_socket_streambuf.hpp:470:42: error: expected primary-expression before ‘)’ token socket().native_handle(), 0, timeout(), ec_) &lt; 0) ^ /usr/include/boost/asio/basic_socket_streambuf.hpp: In member function ‘std::basic_streambuf&lt;char&gt;::int_type boost::asio::basic_socket_streambuf&lt;Protocol, Clock, WaitTraits&gt;::overflow(std::basic_streambuf&lt;char&gt;::int_type)’: /usr/include/boost/asio/basic_socket_streambuf.hpp:529:42: error: expected primary-expression before ‘)’ token socket().native_handle(), 0, timeout(), ec_) &lt; 0) ^ /usr/include/boost/asio/basic_socket_streambuf.hpp: In member function ‘void boost::asio::basic_socket_streambuf&lt;Protocol, Clock, WaitTraits&gt;::connect_to_endpoints(EndpointIterator, EndpointIterator)’: /usr/include/boost/asio/basic_socket_streambuf.hpp:647:39: error: expected primary-expression before ‘)’ token socket().native_handle(), timeout(), ec_) &lt; 0) ^ </pre> </description> <category>Ticket</category> </item> <item> <author>lebed.dmitry@…</author> <pubDate>Tue, 22 May 2018 04:13:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13431#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13431#comment:2</guid> <description> <p> Same issue for me (gcc 8.1.0, boost 1.66.0-2): </p> <pre class="wiki">/usr/include/boost/asio/basic_socket_streambuf.hpp:586:7: error: 'stdscr' is not a type int timeout() const ^~~~~~~ /usr/include/boost/asio/basic_socket_streambuf.hpp:586:7: error: expected identifier before '(' token int timeout() const ^~~~~~~ /usr/include/boost/asio/basic_socket_streambuf.hpp: In member function 'std::basic_streambuf&lt;char&gt;::int_type boost::asio::basic_socket_streambuf&lt;Protocol, Clock, WaitTraits&gt;::underflow()': /usr/include/boost/asio/basic_socket_streambuf.hpp:470:42: error: expected primary-expression before ')' token socket().native_handle(), 0, timeout(), ec_) &lt; 0) ^~~~~~~ /usr/include/boost/asio/basic_socket_streambuf.hpp: In member function 'std::basic_streambuf&lt;char&gt;::int_type boost::asio::basic_socket_streambuf&lt;Protocol, Clock, WaitTraits&gt;::overflow(std::basic_streambuf&lt;char&gt;::int_type)': /usr/include/boost/asio/basic_socket_streambuf.hpp:529:42: error: expected primary-expression before ')' token socket().native_handle(), 0, timeout(), ec_) &lt; 0) ^~~~~~~ /usr/include/boost/asio/basic_socket_streambuf.hpp: In member function 'void boost::asio::basic_socket_streambuf&lt;Protocol, Clock, WaitTraits&gt;::connect_to_endpoints(EndpointIterator, EndpointIterator)': /usr/include/boost/asio/basic_socket_streambuf.hpp:647:39: error: expected primary-expression before ')' token socket().native_handle(), timeout(), ec_) &lt; 0) </pre> </description> <category>Ticket</category> </item> </channel> </rss>