<?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[Namensräume - Was ist erlaubt?]]></title><description><![CDATA[<p>Hallo,</p>
<p>was ist laut C++-Standard (+ 0x) erlaubt und was nicht?</p>
<p>Ich würde gerne folgendes machen</p>
<pre><code class="language-cpp">extern &quot;C&quot; {
  namespace {
    void myfunction() { };
  }
}
</code></pre>
<pre><code class="language-cpp">extern &quot;C&quot; {
  namespace Meins {
    void myfunction() { };
  }
}
</code></pre>
<pre><code class="language-cpp">extern &quot;C&quot; {
  namespace Meins {
    class hello {
      void myfunction() { };
    }
  }
}
</code></pre>
<p>Darf ich das? Und wie müsste ich die Funktion aus C oder C++ Seite ansprechen?</p>
<p>Gruss,<br />
Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/241619/namensräume-was-ist-erlaubt</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 09:34:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/241619.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 May 2009 14:27:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Namensräume - Was ist erlaubt? on Sat, 23 May 2009 14:27:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>was ist laut C++-Standard (+ 0x) erlaubt und was nicht?</p>
<p>Ich würde gerne folgendes machen</p>
<pre><code class="language-cpp">extern &quot;C&quot; {
  namespace {
    void myfunction() { };
  }
}
</code></pre>
<pre><code class="language-cpp">extern &quot;C&quot; {
  namespace Meins {
    void myfunction() { };
  }
}
</code></pre>
<pre><code class="language-cpp">extern &quot;C&quot; {
  namespace Meins {
    class hello {
      void myfunction() { };
    }
  }
}
</code></pre>
<p>Darf ich das? Und wie müsste ich die Funktion aus C oder C++ Seite ansprechen?</p>
<p>Gruss,<br />
Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1714598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714598</guid><dc:creator><![CDATA[Siassei]]></dc:creator><pubDate>Sat, 23 May 2009 14:27:28 GMT</pubDate></item><item><title><![CDATA[Reply to Namensräume - Was ist erlaubt? on Sat, 23 May 2009 15:40:44 GMT]]></title><description><![CDATA[<p>Nein, darfst du nicht. Alles innerhalb von extern &quot;C&quot; { } ist C-Code, soetwas wie Namespaces kann C nicht. Verwende z.B. für soetwas static.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1714613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714613</guid><dc:creator><![CDATA[Ad aCTa2]]></dc:creator><pubDate>Sat, 23 May 2009 15:40:44 GMT</pubDate></item><item><title><![CDATA[Reply to Namensräume - Was ist erlaubt? on Sun, 24 May 2009 09:07:04 GMT]]></title><description><![CDATA[<p>Danke,</p>
<p>genau das hab ich mir gedacht. Kurze Frage, darf ich das extern in einem Namensraum platzieren?</p>
<pre><code class="language-cpp">namespace {
  extern &quot;C&quot; {
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1714835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714835</guid><dc:creator><![CDATA[Siassei]]></dc:creator><pubDate>Sun, 24 May 2009 09:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to Namensräume - Was ist erlaubt? on Sun, 24 May 2009 09:09:25 GMT]]></title><description><![CDATA[<p>Ich denke schon. So ist da zumindest auf meinem System mit den cstdlib usw headern gemacht.Einfach namespace um die C fkts...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1714836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714836</guid><dc:creator><![CDATA[++ler]]></dc:creator><pubDate>Sun, 24 May 2009 09:09:25 GMT</pubDate></item></channel></rss>