<?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[using in namespace oder global?]]></title><description><![CDATA[<p>Hi,</p>
<p>macht es irgend einen Unterschied, ob ich using namespace foo; oder using Foo::Bar; in meinem namespace mache oder global?</p>
<pre><code class="language-cpp">using namespace std;
using Foo::Bar;       // Global

namespace myNS {

  using Foo::Bar;
  using namespace std;  // In meinem NS

}
</code></pre>
<p>Falls es einen Unterschied gibt: Was sollte man benutzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/288822/using-in-namespace-oder-global</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 16:16:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/288822.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Jun 2011 14:34:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to using in namespace oder global? on Thu, 23 Jun 2011 14:34:05 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>macht es irgend einen Unterschied, ob ich using namespace foo; oder using Foo::Bar; in meinem namespace mache oder global?</p>
<pre><code class="language-cpp">using namespace std;
using Foo::Bar;       // Global

namespace myNS {

  using Foo::Bar;
  using namespace std;  // In meinem NS

}
</code></pre>
<p>Falls es einen Unterschied gibt: Was sollte man benutzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2082662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2082662</guid><dc:creator><![CDATA[Namespacerr]]></dc:creator><pubDate>Thu, 23 Jun 2011 14:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to using in namespace oder global? on Thu, 23 Jun 2011 14:41:34 GMT]]></title><description><![CDATA[<p>Das using macht das betroffene Symbol nur in dem Scope bekannt, in dem das using steht. Also hier entweder in deinem Namespace oder global. Versuche als Faustregel die usings so lokal wie möglich und so global wie nötig zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2082667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2082667</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 23 Jun 2011 14:41:34 GMT</pubDate></item><item><title><![CDATA[Reply to using in namespace oder global? on Thu, 23 Jun 2011 14:44:52 GMT]]></title><description><![CDATA[<p>und NIE auf Namespace-Ebene (inklusive globalem Namespace) in eiem Header.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2082671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2082671</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 23 Jun 2011 14:44:52 GMT</pubDate></item></channel></rss>