<?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 namespace]]></title><description><![CDATA[<p>In großen Projekten kann es ja zu Problemem führen using namespace zu benutzen. Aber bei Bibliotheken wie boost::asio::ip::tcp:: würde ich gerne mal was abkürzen, wie kann ich using namespace nutzen ohne damit auf Namensprobleme zu stoßen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/327669/using-namespace</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 14:30:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/327669.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Aug 2014 11:37:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to using namespace on Tue, 26 Aug 2014 11:37:50 GMT]]></title><description><![CDATA[<p>In großen Projekten kann es ja zu Problemem führen using namespace zu benutzen. Aber bei Bibliotheken wie boost::asio::ip::tcp:: würde ich gerne mal was abkürzen, wie kann ich using namespace nutzen ohne damit auf Namensprobleme zu stoßen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2414959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2414959</guid><dc:creator><![CDATA[using namespace]]></dc:creator><pubDate>Tue, 26 Aug 2014 11:37:50 GMT</pubDate></item><item><title><![CDATA[Reply to using namespace on Tue, 26 Aug 2014 11:48:25 GMT]]></title><description><![CDATA[<p>using namespace schrieb:</p>
<blockquote>
<p>In großen Projekten kann es ja zu Problemem führen using namespace zu benutzen. Aber bei Bibliotheken wie boost::asio::ip::tcp:: würde ich gerne mal was abkürzen, wie kann ich using namespace nutzen ohne damit auf Namensprobleme zu stoßen?</p>
</blockquote>
<p>namespace btcp = boost:asio::ip::tcp;<br />
btcp::foo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2414961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2414961</guid><dc:creator><![CDATA[Singender Holzkübel]]></dc:creator><pubDate>Tue, 26 Aug 2014 11:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to using namespace on Tue, 26 Aug 2014 11:58:37 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Antwort, wo haue ich das am besten hin damit es nicht Global wird ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2414962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2414962</guid><dc:creator><![CDATA[using namespace]]></dc:creator><pubDate>Tue, 26 Aug 2014 11:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to using namespace on Tue, 26 Aug 2014 12:31:27 GMT]]></title><description><![CDATA[<p>using namespace schrieb:</p>
<blockquote>
<p>Danke für die schnelle Antwort, wo haue ich das am besten hin damit es nicht Global wird ?</p>
</blockquote>
<p>Am besten überall dort, wo du es brauchst. Nur halt nicht im global Scope. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2414964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2414964</guid><dc:creator><![CDATA[Singender Holzkübel]]></dc:creator><pubDate>Tue, 26 Aug 2014 12:31:27 GMT</pubDate></item><item><title><![CDATA[Reply to using namespace on Tue, 26 Aug 2014 13:09:21 GMT]]></title><description><![CDATA[<p>Singender Holzkübel schrieb:</p>
<blockquote>
<p>namespace btcp = boost:asio::ip::tcp;<br />
btcp::foo</p>
</blockquote>
<p>Klappt nicht, da tcp eine Klasse ist.<br />
Ich schlage vor:</p>
<pre><code>namespace bai = boost::asio::ip;
</code></pre>
<p>oder auch</p>
<pre><code>typedef boost::asio::ip::tcp btcp;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2414976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2414976</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Tue, 26 Aug 2014 13:09:21 GMT</pubDate></item></channel></rss>