Boost C++ Libraries: Ticket #3051: boost::variant should observe BOOST_NO_TYPEID and BOOST_NO_IOSTREAM https://svn.boost.org/trac10/ticket/3051 <p> boost:variant can be used with both BOOST_NO_TYPEID and BOOST_NO_IOSTREAM, providing it is conditionalized to omit certain functionality: </p> <p> 17a18,19 </p> <blockquote class="citation"> <p> #if !defined(BOOST_NO_TYPEID) </p> </blockquote> <p> 18a21 </p> <blockquote class="citation"> <p> #endif <em> BOOST_NO_TYPEID </em></p> </blockquote> <p> 693a697,699 </p> <blockquote class="citation"> <p> #if !defined(BOOST_NO_TYPEID) </p> </blockquote> <p> 706a713,714 </p> <blockquote class="citation"> <p> #endif <em> BOOST_NO_TYPEID </em></p> </blockquote> <p> 1629a1638 </p> <blockquote class="citation"> <p> #if !defined(BOOST_NO_TYPEID) </p> </blockquote> <p> 1634a1644 </p> <blockquote class="citation"> <p> #endif </p> </blockquote> <p> 1825a1836,1837 </p> <blockquote class="citation"> <p> #if !defined(BOOST_NO_IOSTREAM) </p> </blockquote> <p> 1826a1839 </p> <blockquote class="citation"> <p> #endif <em> BOOST_NO_IOSTREAM </em></p> </blockquote> <p> This patch is w.r.t 1.38.0, but the version in 1.39.0 appears to be unchanged. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3051 Trac 1.4.3 anonymous Tue, 19 May 2009 17:59:53 GMT attachment set https://svn.boost.org/trac10/ticket/3051 https://svn.boost.org/trac10/ticket/3051 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">variant.hpp</span> </li> </ul> <p> Modified variant.hpp </p> Ticket anonymous Tue, 19 May 2009 18:00:45 GMT attachment set https://svn.boost.org/trac10/ticket/3051 https://svn.boost.org/trac10/ticket/3051 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">variant.diff</span> </li> </ul> <p> variant.hpp diff w.r.t boost 1.38.0 </p> Ticket Marshall Clow Sun, 31 May 2009 06:36:30 GMT <link>https://svn.boost.org/trac10/ticket/3051#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3051#comment:1</guid> <description> <p> This patch applies ok (though it should really be a full SVN diff), and rebuilding doesn't seem to cause any problems; at least the variant tests all pass. Tested on Mac OS X, gcc 4.0.1 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 31 May 2009 11:13:42 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/3051#comment:2 https://svn.boost.org/trac10/ticket/3051#comment:2 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> I'm attaching a new patch. It includes the changes to blank.hpp (as it seems to be part of variant - that it isn't documented or tested is another bug, all top level headers should have a link to their library's documentation). It also adds a couple of notes to reference documentation and fixes the tests for when <code>BOOST_NO_TYPEID</code> isn't defined. I tested it with the following in my <code>user-config.jam</code>: </p> <pre class="wiki">using darwin : 4.4nortti : ccache g++-mp-4.4 -fno-rtti ; </pre><p> <code>BOOST_NO_IOSTREAM</code> is harder to test as the tests rely heavily on it, but I tried a simple file which included STLport with <code>_STLP_USE_NO_IOSTREAMS</code> defined and it seemed okay. </p> Ticket Daniel James Sun, 31 May 2009 11:14:32 GMT attachment set https://svn.boost.org/trac10/ticket/3051 https://svn.boost.org/trac10/ticket/3051 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">variant.patch</span> </li> </ul> <p> Patch for both variant and blank, with tests and a little documentation. </p> Ticket Daniel James Sat, 06 Jun 2009 11:46:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3051#comment:3 https://svn.boost.org/trac10/ticket/3051#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/53682" title="Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes ...">[53682]</a>) Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3051" title="#3051: Patches: boost::variant should observe BOOST_NO_TYPEID and BOOST_NO_IOSTREAM (closed: fixed)">#3051</a>. </p> Ticket Daniel James Sat, 27 Jun 2009 07:34:44 GMT <link>https://svn.boost.org/trac10/ticket/3051#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3051#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/54398" title="Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes ...">[54398]</a>) Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3051" title="#3051: Patches: boost::variant should observe BOOST_NO_TYPEID and BOOST_NO_IOSTREAM (closed: fixed)">#3051</a>. </p> <p> Merged revisions 53682 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/53682" title="Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes ...">r53682</a> | danieljames | 2009-06-06 12:46:24 +0100 (Sat, 06 Jun 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3051" title="#3051: Patches: boost::variant should observe BOOST_NO_TYPEID and BOOST_NO_IOSTREAM (closed: fixed)">#3051</a>. </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> </channel> </rss>