<?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[Nested Class und friend]]></title><description><![CDATA[<p>Verstaendnisfrage:</p>
<pre><code class="language-cpp">class A;

class B
{
    friend class A;
    void Bfunc() {}
};

class A
{
    class C
    {
        B bClass;
        void Cfunc() { bClass.Bfunc(); }
    };

};
</code></pre>
<p>was sagt der Standard?</p>
<p>gcc 4.1.2 kompiliert zwar brav, aber man weiss ja nie</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/225349/nested-class-und-friend</link><generator>RSS for Node</generator><lastBuildDate>Thu, 01 Oct 2026 12:04:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/225349.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Oct 2008 13:14:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nested Class und friend on Wed, 22 Oct 2008 13:14:45 GMT]]></title><description><![CDATA[<p>Verstaendnisfrage:</p>
<pre><code class="language-cpp">class A;

class B
{
    friend class A;
    void Bfunc() {}
};

class A
{
    class C
    {
        B bClass;
        void Cfunc() { bClass.Bfunc(); }
    };

};
</code></pre>
<p>was sagt der Standard?</p>
<p>gcc 4.1.2 kompiliert zwar brav, aber man weiss ja nie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1602856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1602856</guid><dc:creator><![CDATA[zwutz]]></dc:creator><pubDate>Wed, 22 Oct 2008 13:14:45 GMT</pubDate></item><item><title><![CDATA[Reply to Nested Class und friend on Wed, 22 Oct 2008 13:47:44 GMT]]></title><description><![CDATA[<p>Der Standard sagt, dass eingebettete Klassen keine besonderen Rechte haben, und dass die normalen Zugriffsregeln gelten. Das geht also.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1602875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1602875</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Wed, 22 Oct 2008 13:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to Nested Class und friend on Wed, 22 Oct 2008 18:37:04 GMT]]></title><description><![CDATA[<p>Dürfte das dann eben nicht gehen?<br />
BFunc ist eine private Funktion.<br />
Daher hast C doch gar nicht das Recht BFunc aufzurufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1603033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1603033</guid><dc:creator><![CDATA[fgfgngf]]></dc:creator><pubDate>Wed, 22 Oct 2008 18:37:04 GMT</pubDate></item></channel></rss>