<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 7.11 &#8212; Namespaces</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/711-namespaces/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/</link>
	<description></description>
	<pubDate>Fri, 29 Aug 2008 19:24:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Learn C++ - &#187; 7.12 &#8212; Handling errors (assert, cerr, exit, and exceptions)</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-18611</link>
		<dc:creator>Learn C++ - &#187; 7.12 &#8212; Handling errors (assert, cerr, exit, and exceptions)</dc:creator>
		<pubDate>Tue, 10 Jun 2008 02:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-18611</guid>
		<description>[...] No, thank you! -Alex ]          4    Learn C++ - &#187; 7.11 &#8212; Namespaces  says:   April 28th, 2008 at 9:06 pm            [...] 7.12 â€” Handling errors (assert, cerr, [...]</description>
		<content:encoded><![CDATA[<p>[...] No, thank you! -Alex ]          4    Learn C++ - &raquo; 7.11 &#8212; Namespaces  says:   April 28th, 2008 at 9:06 pm            [...] 7.12 â€” Handling errors (assert, cerr, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 7.10 &#8212; Recursion</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-13496</link>
		<dc:creator>Learn C++ - &#187; 7.10 &#8212; Recursion</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-13496</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 7.9 &#8212; The stack and the heap &#124; Home &#124; 7.11 &#8212; Namespaces &#187;     Monday, August 13th, 2007 at 9:30 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 7.9 &#8212; The stack and the heap | Home | 7.11 &#8212; Namespaces &raquo;     Monday, August 13th, 2007 at 9:30 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-10506</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Fri, 28 Mar 2008 19:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-10506</guid>
		<description>The link to the next lesson at the top should point to section 7.12, not to 8.1.

Great tutorial by the way.  Thanks for all the effort.</description>
		<content:encoded><![CDATA[<p>The link to the next lesson at the top should point to section 7.12, not to 8.1.</p>
<p>Great tutorial by the way.  Thanks for all the effort.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-10269</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 24 Mar 2008 16:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-10269</guid>
		<description>Another very well-written section. 

One very small typo: "the compiler tried &lt;b&gt;to&lt;/b&gt; put both versions" or maybe "the compiler &lt;b&gt;tries to&lt;/b&gt; put both versions"

[ Thanks! -Alex ]</description>
		<content:encoded><![CDATA[<p>Another very well-written section. </p>
<p>One very small typo: &#8220;the compiler tried <b>to</b> put both versions&#8221; or maybe &#8220;the compiler <b>tries to</b> put both versions&#8221;</p>
<p>[ Thanks! -Alex ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-9238</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 10 Mar 2008 20:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-9238</guid>
		<description>You have put "In the following example, fool.h and goo.h are the header files" when the headers are "foo.h" and "goo.h".

[ Thanks!  Fixed.  -Alex ]</description>
		<content:encoded><![CDATA[<p>You have put &#8220;In the following example, fool.h and goo.h are the header files&#8221; when the headers are &#8220;foo.h&#8221; and &#8220;goo.h&#8221;.</p>
<p>[ Thanks!  Fixed.  -Alex ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zafer</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-7248</link>
		<dc:creator>Zafer</dc:creator>
		<pubDate>Tue, 05 Feb 2008 01:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-7248</guid>
		<description>Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-7244</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 05 Feb 2008 00:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-7244</guid>
		<description>You can always reference a namespace directly using the scope resolution operator (::).

However, if you want to use the using statement, I think the only way to do this would be to put the using statement inside it's own block, along with the relevant code.

Something like this:

&lt;pre&gt;
int main()
{
    {
        using namespace foo;
        // calls to foo:: stuff here
    } // using namespace foo expires

    {
        using namespace goo;
        // calls to goo:: stuff here
    } // using namespace goo expires
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>You can always reference a namespace directly using the scope resolution operator (::).</p>
<p>However, if you want to use the using statement, I think the only way to do this would be to put the using statement inside it&#8217;s own block, along with the relevant code.</p>
<p>Something like this:</p>
<pre>
int main()
{
    {
        using namespace foo;
        // calls to foo:: stuff here
    } // using namespace foo expires

    {
        using namespace goo;
        // calls to goo:: stuff here
    } // using namespace goo expires
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zafer</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-7228</link>
		<dc:creator>Zafer</dc:creator>
		<pubDate>Mon, 04 Feb 2008 20:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-7228</guid>
		<description>What if we want to use Foo namespace first and then Goo namespace? Is it possible to discontinue using a namespace and start using another?</description>
		<content:encoded><![CDATA[<p>What if we want to use Foo namespace first and then Goo namespace? Is it possible to discontinue using a namespace and start using another?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-6016</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 14 Jan 2008 16:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-6016</guid>
		<description>I put in a workaround to address the issue.  Non-IE browsers render their scrollbars on the outside of the element needing to be scrolled, but IE (stupidly) renders them on the inside, which obliterates the element being viewed when it's only one line high.

I put in some conditional CSS to force IE to render additional space at the bottom of all PRE elements.  That way, if it decides to render scrollbars on the inside of the element, there's enough room to do so without visually overriding the text.  As a side effect, all non-scrolled PRE elements will have extra room at the bottom when viewed in IE, but that side effect is minor.

Firefox users aren't affected by this.</description>
		<content:encoded><![CDATA[<p>I put in a workaround to address the issue.  Non-IE browsers render their scrollbars on the outside of the element needing to be scrolled, but IE (stupidly) renders them on the inside, which obliterates the element being viewed when it&#8217;s only one line high.</p>
<p>I put in some conditional CSS to force IE to render additional space at the bottom of all PRE elements.  That way, if it decides to render scrollbars on the inside of the element, there&#8217;s enough room to do so without visually overriding the text.  As a side effect, all non-scrolled PRE elements will have extra room at the bottom when viewed in IE, but that side effect is minor.</p>
<p>Firefox users aren&#8217;t affected by this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renu</title>
		<link>http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-5992</link>
		<dc:creator>Renu</dc:creator>
		<pubDate>Mon, 14 Jan 2008 06:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/711-namespaces/#comment-5992</guid>
		<description>"In order to help address this type of problem, the concept of namespaces was introduced."

"In this case, it couldnâ€™t find DoSomething() in the global namespace, so it looked in both the Foo namespace and the Goo... "

Vertical scrollbar above these lines are not visible.So not able to read the content.

Renu</description>
		<content:encoded><![CDATA[<p>&#8220;In order to help address this type of problem, the concept of namespaces was introduced.&#8221;</p>
<p>&#8220;In this case, it couldnâ€™t find DoSomething() in the global namespace, so it looked in both the Foo namespace and the Goo&#8230; &#8221;</p>
<p>Vertical scrollbar above these lines are not visible.So not able to read the content.</p>
<p>Renu</p>
]]></content:encoded>
	</item>
</channel>
</rss>
