<?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[Spezialisierung als friend?]]></title><description><![CDATA[<p>Hallo</p>
<pre><code class="language-cpp">template&lt;class A,class B&gt; void f(A a,B b)
{
}

template&lt;class foo&gt;class C
{
	template&lt;class B&gt;friend void f&lt;foo,B&gt;(foo,B); //Fehler hier: invalid use of template-id 'f&lt;foo, B&gt;' in declaration of primary template
};
</code></pre>
<p>Compiler ist gcc 4.3.3</p>
<p>Was ist falsch?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/235123/spezialisierung-als-friend</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 06:43:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235123.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Feb 2009 01:04:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Spezialisierung als friend? on Thu, 26 Feb 2009 01:04:38 GMT]]></title><description><![CDATA[<p>Hallo</p>
<pre><code class="language-cpp">template&lt;class A,class B&gt; void f(A a,B b)
{
}

template&lt;class foo&gt;class C
{
	template&lt;class B&gt;friend void f&lt;foo,B&gt;(foo,B); //Fehler hier: invalid use of template-id 'f&lt;foo, B&gt;' in declaration of primary template
};
</code></pre>
<p>Compiler ist gcc 4.3.3</p>
<p>Was ist falsch?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1670416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1670416</guid><dc:creator><![CDATA[Helt]]></dc:creator><pubDate>Thu, 26 Feb 2009 01:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to Spezialisierung als friend? on Thu, 26 Feb 2009 05:23:42 GMT]]></title><description><![CDATA[<p>Wenn ich mich richtig erinnere geht das einfach nicht.<br />
Entweder alles template (A und B), oder garnix template.<br />
Lies im Standard nach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1670429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1670429</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Thu, 26 Feb 2009 05:23:42 GMT</pubDate></item><item><title><![CDATA[Reply to Spezialisierung als friend? on Thu, 26 Feb 2009 17:31:48 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p>Wenn ich mich richtig erinnere geht das einfach nicht.<br />
Entweder alles template (A und B), oder garnix template.<br />
Lies im Standard nach.</p>
</blockquote>
<p>Richtig. Ein Funktionstemplates können nicht partiell spezialisiert werden. Im Standard nachlesen wird aber schwierig, da es nicht explizit steht, da nichts davon drinsteht. Somit ist es nicht erlaubt..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1670829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1670829</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Thu, 26 Feb 2009 17:31:48 GMT</pubDate></item></channel></rss>