<?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[std-namespace]]></title><description><![CDATA[<p>Warum liegen manche Std-Funktionen wie <a href="http://www.cplusplus.com/reference/string/getline/" rel="nofollow">getline()</a> (auch) im globalen (statt im std-) namespace?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/258185/std-namespace</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 11:32:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/258185.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Jan 2010 14:37:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to std-namespace on Thu, 07 Jan 2010 14:37:30 GMT]]></title><description><![CDATA[<p>Warum liegen manche Std-Funktionen wie <a href="http://www.cplusplus.com/reference/string/getline/" rel="nofollow">getline()</a> (auch) im globalen (statt im std-) namespace?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1834415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1834415</guid><dc:creator><![CDATA[wx++]]></dc:creator><pubDate>Thu, 07 Jan 2010 14:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to std-namespace on Thu, 07 Jan 2010 14:43:48 GMT]]></title><description><![CDATA[<p>Weil du die alten C-Header einbindest (zB stdlib.h) bei denen es keine Namespaces gab anstatt wie empfohlen die Wrapper-Header (cstdlib). Bei letzterem liegt alles im Namespace std.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1834424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1834424</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Thu, 07 Jan 2010 14:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to std-namespace on Thu, 07 Jan 2010 14:47:29 GMT]]></title><description><![CDATA[<p>Nein.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;

int main()
{
    std::string input;
    getline(std::cin, input);
    std::cout &lt;&lt; &quot;You entered \&quot;&quot; &lt;&lt; input &lt;&lt; &quot;\&quot;.&quot; &lt;&lt; std::endl;
    return 0;
}
</code></pre>
<p>Geht bei mir (g++). Und ich glaube nicht, dass es am Compiler liegt, weil ich in einem Beispiel der boost-Doku auch auf die Verwendung ohne std:: gestoßen bin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1834426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1834426</guid><dc:creator><![CDATA[wx++]]></dc:creator><pubDate>Thu, 07 Jan 2010 14:47:29 GMT</pubDate></item><item><title><![CDATA[Reply to std-namespace on Thu, 07 Jan 2010 14:51:24 GMT]]></title><description><![CDATA[<p>Das geht wegen ADL.<br />
<a href="http://en.wikipedia.org/wiki/Argument_dependent_name_lookup" rel="nofollow">http://en.wikipedia.org/wiki/Argument_dependent_name_lookup</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1834432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1834432</guid><dc:creator><![CDATA[Ryuzaki]]></dc:creator><pubDate>Thu, 07 Jan 2010 14:51:24 GMT</pubDate></item></channel></rss>