<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ADL und Mehrfachvererbung&#x2F;Template-Verschachtelung]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich habe mal gelesen, dass man von einer Klasse aus <code>boost::operator</code> lieber verschachtelt statt mehrfach erben soll:</p>
<pre><code class="language-cpp">//Statt
class foo : boost::incrementable&lt;foo&gt;, boost::decrementable&lt;foo&gt;
{
};
//lieber
class foo : boost::incrementable&lt;foo, boost::decrementable&lt;foo&gt; &gt;
{
};
</code></pre>
<p>Wieso ist das so?</p>
<p>MfG, EOutOfResources</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/289602/adl-und-mehrfachvererbung-template-verschachtelung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 05:44:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/289602.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jul 2011 18:49:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ADL und Mehrfachvererbung&#x2F;Template-Verschachtelung on Fri, 08 Jul 2011 18:49:01 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich habe mal gelesen, dass man von einer Klasse aus <code>boost::operator</code> lieber verschachtelt statt mehrfach erben soll:</p>
<pre><code class="language-cpp">//Statt
class foo : boost::incrementable&lt;foo&gt;, boost::decrementable&lt;foo&gt;
{
};
//lieber
class foo : boost::incrementable&lt;foo, boost::decrementable&lt;foo&gt; &gt;
{
};
</code></pre>
<p>Wieso ist das so?</p>
<p>MfG, EOutOfResources</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2090418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2090418</guid><dc:creator><![CDATA[EOutOfResources]]></dc:creator><pubDate>Fri, 08 Jul 2011 18:49:01 GMT</pubDate></item><item><title><![CDATA[Reply to ADL und Mehrfachvererbung&#x2F;Template-Verschachtelung on Fri, 08 Jul 2011 18:52:06 GMT]]></title><description><![CDATA[<p>Steht in der Doku: manche Compiler können bei Mehrfachvererbung keine Empty-Base-Optimization.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2090421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2090421</guid><dc:creator><![CDATA[ipsec]]></dc:creator><pubDate>Fri, 08 Jul 2011 18:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to ADL und Mehrfachvererbung&#x2F;Template-Verschachtelung on Fri, 08 Jul 2011 18:52:38 GMT]]></title><description><![CDATA[<p>Ich bin mir auch nicht 100% sicher, aber afaik hing das mit der &quot;Empty Base Optimization&quot; zusammen (d.h. eine leere Basisklasse benötigt keinen zusätzlichen Platz, das funktioniert aber anscheinend nur bei Einfach-Vererbung).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2090422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2090422</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 08 Jul 2011 18:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to ADL und Mehrfachvererbung&#x2F;Template-Verschachtelung on Fri, 08 Jul 2011 18:54:14 GMT]]></title><description><![CDATA[<p>Ah, danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2090424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2090424</guid><dc:creator><![CDATA[EOutOfResources]]></dc:creator><pubDate>Fri, 08 Jul 2011 18:54:14 GMT</pubDate></item></channel></rss>