Boost C++ Libraries: Ticket #1765: Need a macro to determine whether basic streams are present https://svn.boost.org/trac10/ticket/1765 <p> shared_ptr.hpp line 560 (boost 1.35)reads #if defined(<span class="underline">GNUC</span>) &amp;&amp; (<span class="underline">GNUC</span> &lt; 3) </p> <blockquote> <p> template&lt;class Y&gt; std::ostream &amp; operator&lt;&lt; (std::ostream &amp; os, shared_ptr&lt;Y&gt; const &amp; p) ... </p> </blockquote> <p> The test should be something more generic - Peter Dimov suggested BOOST_NO_BASIC_STREAM as a new boost macro - then this code can compile for other (unsupported) compilers </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1765 Trac 1.4.3 Peter Dimov Thu, 03 Apr 2008 21:42:56 GMT cc set https://svn.boost.org/trac10/ticket/1765#comment:1 https://svn.boost.org/trac10/ticket/1765#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">Peter Dimov</span> added </li> </ul> Ticket John Maddock Fri, 04 Apr 2008 09:06:07 GMT status changed https://svn.boost.org/trac10/ticket/1765#comment:2 https://svn.boost.org/trac10/ticket/1765#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I've tended to (ab)use BOOST_NO_STD_LOCALE for this in the past, but if we want a more specific macro, then what about BOOST_NO_NEW_IOSTREAMS ? </p> <p> John. </p> Ticket Peter Dimov Sat, 05 Apr 2008 15:41:30 GMT <link>https://svn.boost.org/trac10/ticket/1765#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1765#comment:3</guid> <description> <p> Any name is fine with me, although BOOST_NO_BASIC_STREAM leaves less room for misunderstandings. BOOST_NO_TEMPLATED_(IO)STREAMS is another option. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 21 Apr 2008 09:21:19 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1765#comment:4 https://svn.boost.org/trac10/ticket/1765#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I've added support for BOOST_NO_TEMPLATED_IOSTREAMS to Boost.Config as of revision <a class="missing ticket">#44689</a>. Currently the macro is not defined for any compiler, but the tests and docs are all present. </p> <p> HTH, John. </p> Ticket Peter Dimov Mon, 21 Apr 2008 23:06:30 GMT <link>https://svn.boost.org/trac10/ticket/1765#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1765#comment:5</guid> <description> <p> shared_ptr.hpp changed to test the new macro: <a class="changeset" href="https://svn.boost.org/trac10/changeset/44707" title="Honor BOOST_NO_TEMPLATED_IOSTREAMS.">[44707]</a>. I've left the old condition (__GNUC__ &lt; 3) intact; if/when this is added to gcc.hpp I'll remove it. </p> </description> <category>Ticket</category> </item> </channel> </rss>