<?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[Namespace wrapper]]></title><description><![CDATA[<p>hi,</p>
<p>kann man einer datei, die keine namespaces hat, einfach einen umlegen?<br />
also so:</p>
<pre><code class="language-cpp">...
namespace EXT
{
    #include &quot;ExterneDatei.h&quot;
}
</code></pre>
<p>grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159394/namespace-wrapper</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 10:40:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159394.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Sep 2006 14:42:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 14:42:37 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>kann man einer datei, die keine namespaces hat, einfach einen umlegen?<br />
also so:</p>
<pre><code class="language-cpp">...
namespace EXT
{
    #include &quot;ExterneDatei.h&quot;
}
</code></pre>
<p>grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137404</guid><dc:creator><![CDATA[Name: Spatz]]></dc:creator><pubDate>Thu, 14 Sep 2006 14:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 15:05:11 GMT]]></title><description><![CDATA[<p>ausprobieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137423</guid><dc:creator><![CDATA[ausprobieren?]]></dc:creator><pubDate>Thu, 14 Sep 2006 15:05:11 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 15:40:39 GMT]]></title><description><![CDATA[<p>...einfach einen Umlegen ?</p>
<p>Wo kommen wir den da hin, Wild Wild West <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137467</guid><dc:creator><![CDATA[polizei]]></dc:creator><pubDate>Thu, 14 Sep 2006 15:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 15:46:58 GMT]]></title><description><![CDATA[<p>Man kann. Ich habe es jedenfalls schon gemacht und es hat auch funktionert.<br />
Warum auch nicht, der Compiler kriegt das ja gar nicht zu sehen, die Datei wird vom Präprozessor an der Stelle eingefügt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137471</guid><dc:creator><![CDATA[DollyDuplex]]></dc:creator><pubDate>Thu, 14 Sep 2006 15:46:58 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 15:47:47 GMT]]></title><description><![CDATA[<p>Ein include ist eine reine Textersetzung. Nun überleg mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137472</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137472</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 14 Sep 2006 15:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 16:21:45 GMT]]></title><description><![CDATA[<p>DollyDuplex schrieb:</p>
<blockquote>
<p>Man kann. Ich habe es jedenfalls schon gemacht und es hat auch funktionert.</p>
</blockquote>
<p>Mit Templates oder mit ner Lib?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137486</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137486</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Thu, 14 Sep 2006 16:21:45 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 16:53:26 GMT]]></title><description><![CDATA[<p>finix schrieb:</p>
<blockquote>
<p>DollyDuplex schrieb:</p>
<blockquote>
<p>Man kann. Ich habe es jedenfalls schon gemacht und es hat auch funktionert.</p>
</blockquote>
<p>Mit Templates oder mit ner Lib?</p>
</blockquote>
<p>Sowohl mit 'normalem' Code als auch mit Templates. In einer Bibliothek funktioniert es glaub nicht (zumindest kannst beim holen der Einsprungsadresse als Symbol da nicht den 'vollen' Namen angeben).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137514</guid><dc:creator><![CDATA[DollyDuplex]]></dc:creator><pubDate>Thu, 14 Sep 2006 16:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 16:59:14 GMT]]></title><description><![CDATA[<p>geht fast immer mit dateien, die nicht mit namespaces arbeiten. also allen alten sozusagen.<br />
mach ich auch manchmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137517</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Thu, 14 Sep 2006 16:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Namespace wrapper on Thu, 14 Sep 2006 17:02:31 GMT]]></title><description><![CDATA[<p>Ich hab Templates als Beispiel genommen da diese in aller Regel auch im Header implementiert sind. Worauf ich hinaus wollte:</p>
<pre><code class="language-cpp">// lib_foo.hpp
struct foo
{
  void blob();
};

// lib_foo.cpp
void foo::blob() { }

// app.cpp
namespace ext {
#include &quot;lib_foo.hpp&quot;
}

int main()
{
  ext::foo bar;
  bar.blob();
}

//-----------------------------

&gt;compile lib... OK
&gt;create lib... OK
&gt;compile app... OK
&gt;link app... huh?
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1137520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137520</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Thu, 14 Sep 2006 17:02:31 GMT</pubDate></item></channel></rss>