<?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 namespaces und Zugriffe aus benachbarten namespaces]]></title><description><![CDATA[<p>Ich glaub ich erkläre es am einfachsten an einem Beispiel:</p>
<pre><code class="language-cpp">namespace core
{
  namespace math
  {
     struct Vector2D{ float x, y; };
  }

  namespace graphics
  {
     struct Line
    {
       Line( const math::Vector2D&amp; begin, const math::Vector2D&amp; end );
    }
  }
}
</code></pre>
<p>Und zwar geht es mir um den Konstruktor von Line dort wird vor math::Vector2D das core:: weggelassen, ist das Verhalten (also dass es geht) in den normalen lookup-Regeln enthalten?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/158005/nested-namespaces-und-zugriffe-aus-benachbarten-namespaces</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 12:47:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/158005.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Aug 2006 13:12:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nested namespaces und Zugriffe aus benachbarten namespaces on Thu, 31 Aug 2006 13:12:56 GMT]]></title><description><![CDATA[<p>Ich glaub ich erkläre es am einfachsten an einem Beispiel:</p>
<pre><code class="language-cpp">namespace core
{
  namespace math
  {
     struct Vector2D{ float x, y; };
  }

  namespace graphics
  {
     struct Line
    {
       Line( const math::Vector2D&amp; begin, const math::Vector2D&amp; end );
    }
  }
}
</code></pre>
<p>Und zwar geht es mir um den Konstruktor von Line dort wird vor math::Vector2D das core:: weggelassen, ist das Verhalten (also dass es geht) in den normalen lookup-Regeln enthalten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1128405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1128405</guid><dc:creator><![CDATA[Thomas H.]]></dc:creator><pubDate>Thu, 31 Aug 2006 13:12:56 GMT</pubDate></item><item><title><![CDATA[Reply to Nested namespaces und Zugriffe aus benachbarten namespaces on Thu, 31 Aug 2006 17:15:24 GMT]]></title><description><![CDATA[<p>ja, du bist ja in dem namespace core und innerhalb des namespaces brauchst du den namespace nicht extra angeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1128622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1128622</guid><dc:creator><![CDATA[DrGreenthumb]]></dc:creator><pubDate>Thu, 31 Aug 2006 17:15:24 GMT</pubDate></item></channel></rss>