<?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[#includes innerhalb von namespaces]]></title><description><![CDATA[<p>Hallo,</p>
<pre><code class="language-cpp">namespace MyNameSpace {
    #include &lt;string&gt;

    class MyClass {
    private:
        std::string MyString;
    //...
    };
}
</code></pre>
<p>ist so etwas irgendwie möglich?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/247419/includes-innerhalb-von-namespaces</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 13:52:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/247419.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Aug 2009 18:21:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to #includes innerhalb von namespaces on Mon, 10 Aug 2009 18:21:43 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<pre><code class="language-cpp">namespace MyNameSpace {
    #include &lt;string&gt;

    class MyClass {
    private:
        std::string MyString;
    //...
    };
}
</code></pre>
<p>ist so etwas irgendwie möglich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1758469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1758469</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 10 Aug 2009 18:21:43 GMT</pubDate></item><item><title><![CDATA[Reply to #includes innerhalb von namespaces on Mon, 10 Aug 2009 18:36:42 GMT]]></title><description><![CDATA[<p>Ja, klar geht das. Die Frage ist nur, ob das wirklich sinnvoll ist.<br />
<code>#include</code> ist ja eine Anweisung für den Präprozessor und schlussentlich wird ja lediglich der Inhalt des angegebenen Files hingepackt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1758474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1758474</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 10 Aug 2009 18:36:42 GMT</pubDate></item><item><title><![CDATA[Reply to #includes innerhalb von namespaces on Mon, 10 Aug 2009 18:37:35 GMT]]></title><description><![CDATA[<p>Prinzipiell kann man natürlich #includes in namespaces benutzen. Es handelt sich ja um eine einfache Textersetzung. Wie du aber bei deienm Beispiel siehst, ist das nicht unbedingt eine gute Idee, wenn die eingebundene Datei Sachen macht, die nicht innerhalb eines anderen namespace funktionieren...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1758475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1758475</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 10 Aug 2009 18:37:35 GMT</pubDate></item><item><title><![CDATA[Reply to #includes innerhalb von namespaces on Mon, 10 Aug 2009 19:05:02 GMT]]></title><description><![CDATA[<p>Undefiniert im Falle von Standardheadern (17.4.2.1/3)</p>
<blockquote>
<p>A translation unit shall include a header only outside of any external declaration or definition, ...</p>
</blockquote>
<p>im obigen Fall befinden wir uns ja innerhalb einer namespace-Definition.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1758484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1758484</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Mon, 10 Aug 2009 19:05:02 GMT</pubDate></item></channel></rss>