<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Converting Variadic Template Arguments Pack to Boost Mpl Sequence</title>
	<atom:link href="http://blog.shandyba.com/2009/12/17/converting-variadic-template-arguments-pack-to-boost-mpl-sequence/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.shandyba.com/2009/12/17/converting-variadic-template-arguments-pack-to-boost-mpl-sequence/</link>
	<description></description>
	<lastBuildDate>Wed, 28 Sep 2011 20:53:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Lluís</title>
		<link>http://blog.shandyba.com/2009/12/17/converting-variadic-template-arguments-pack-to-boost-mpl-sequence/comment-page-1/#comment-5295</link>
		<dc:creator>Lluís</dc:creator>
		<pubDate>Wed, 28 Sep 2011 20:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.shandyba.com/?p=15#comment-5295</guid>
		<description>This one should work for any structure accepting only a fixed number of template arguments (like boost::vector):


        /** Use variadic templates in fixed-size templated classes.
         *
         * Works around a compiler bug (was a language requirement on a previous
         * draft of the standard).
         */
        template&lt;template  class T, class... Args&gt;
        struct from_variadic
        {
            typedef T type;
        };

To use, simply do:

        typedef typename from_variadic::type arg_types;
        boost::mpl::for_each(functor);

Taken from here (with a minor compilation error corrected): http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35722#c12</description>
		<content:encoded><![CDATA[<p>This one should work for any structure accepting only a fixed number of template arguments (like boost::vector):</p>
<p>        /** Use variadic templates in fixed-size templated classes.<br />
         *<br />
         * Works around a compiler bug (was a language requirement on a previous<br />
         * draft of the standard).<br />
         */<br />
        template&lt;template  class T, class&#8230; Args&gt;<br />
        struct from_variadic<br />
        {<br />
            typedef T type;<br />
        };</p>
<p>To use, simply do:</p>
<p>        typedef typename from_variadic::type arg_types;<br />
        boost::mpl::for_each(functor);</p>
<p>Taken from here (with a minor compilation error corrected): <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35722#c12" rel="nofollow">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35722#c12</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://blog.shandyba.com/2009/12/17/converting-variadic-template-arguments-pack-to-boost-mpl-sequence/comment-page-1/#comment-4382</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Sun, 03 Jul 2011 13:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.shandyba.com/?p=15#comment-4382</guid>
		<description>I was going to write something similar. Thx it&#039;s very useful.</description>
		<content:encoded><![CDATA[<p>I was going to write something similar. Thx it&#8217;s very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bx12</title>
		<link>http://blog.shandyba.com/2009/12/17/converting-variadic-template-arguments-pack-to-boost-mpl-sequence/comment-page-1/#comment-59</link>
		<dc:creator>Bx12</dc:creator>
		<pubDate>Fri, 02 Apr 2010 05:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.shandyba.com/?p=15#comment-59</guid>
		<description>Congratulations on this post. I followed up on it on my website.</description>
		<content:encoded><![CDATA[<p>Congratulations on this post. I followed up on it on my website.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

