Boost C++ Libraries: Ticket #1900: Missing documentation for mpl::print in the MPL library https://svn.boost.org/trac10/ticket/1900 <p> The documentation for mpl::print is missing from the Boost reference documentation. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1900 Trac 1.4.3 Marshall Clow Wed, 21 May 2008 14:53:13 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1900#comment:1 https://svn.boost.org/trac10/ticket/1900#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">mpi</span> </li> </ul> Ticket Douglas Gregor Wed, 21 May 2008 17:33:09 GMT owner, component changed https://svn.boost.org/trac10/ticket/1900#comment:2 https://svn.boost.org/trac10/ticket/1900#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Aleksey Gurtovoy</span> </li> <li><strong>component</strong> <span class="trac-field-old">mpi</span> → <span class="trac-field-new">mpl</span> </li> </ul> Ticket Mathias Gaunard Fri, 08 Jul 2011 07:56:38 GMT owner changed https://svn.boost.org/trac10/ticket/1900#comment:3 https://svn.boost.org/trac10/ticket/1900#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Aleksey Gurtovoy</span> to <span class="trac-author">Joel Falcou</span> </li> </ul> <p> There is also a test but it doesn't appear to be compiled. </p> <p> It would be nice if it were possible to test a warning is indeed emitted. </p> Ticket Robert Ramey Sun, 27 Nov 2011 17:33:58 GMT <link>https://svn.boost.org/trac10/ticket/1900#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1900#comment:4</guid> <description> <p> Comment: </p> <p> I find mpl print indispensable. However the following should be noted somewhere: </p> <p> a) in order to work with GCC -Wall (or likely some more specific warning) must be set in the command line. Actually I should be -Wsign-compare. This is the case with gcc-4.5.3 </p> <p> b) The following only prints the first time </p> <p> struct a; typedef a b; </p> <p> mpl::print&lt;a&gt; <em> this displays mpl::print&lt;a&gt; </em> this doesn't display mpl::print&lt;b&gt; <em> neither does this. </em></p> <p> I don't think this can be actually fixed, but I would be nice to see it noted in the manual. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Sun, 27 Nov 2011 18:46:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1900#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1900#comment:5</guid> <description> <p> There are better tricks for displaying types with GCC. </p> <p> I personally just use </p> <pre class="wiki">template&lt;class T&gt; struct print { unsigned : 80; typedef T type; }; </pre><p> doesn't work at all with other compilers though. </p> </description> <category>Ticket</category> </item> </channel> </rss>