<?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[Gültigkeit temporärer Objekte]]></title><description><![CDATA[<pre><code>std::string f();
void g(const char*);

g(f().c_str());
</code></pre>
<p>Ist der const char* in g() noch gültig? Sollte ja schon, da meines Wissens temporäre Objekte bis zum Ende des Ausdrucks existieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/316866/gültigkeit-temporärer-objekte</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 13:44:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/316866.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 May 2013 14:33:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gültigkeit temporärer Objekte on Sun, 19 May 2013 14:33:32 GMT]]></title><description><![CDATA[<pre><code>std::string f();
void g(const char*);

g(f().c_str());
</code></pre>
<p>Ist der const char* in g() noch gültig? Sollte ja schon, da meines Wissens temporäre Objekte bis zum Ende des Ausdrucks existieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324448</guid><dc:creator><![CDATA[wiking0r]]></dc:creator><pubDate>Sun, 19 May 2013 14:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to Gültigkeit temporärer Objekte on Sun, 19 May 2013 14:44:51 GMT]]></title><description><![CDATA[<p>§ 12.2/3 schrieb:</p>
<blockquote>
<p>Temporary objects are destroyed as the last step in evaluating the full-expression (1.9) that (lexically) contains the point where they were created.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2324450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324450</guid><dc:creator><![CDATA[stichwort]]></dc:creator><pubDate>Sun, 19 May 2013 14:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to Gültigkeit temporärer Objekte on Sun, 19 May 2013 14:47:40 GMT]]></title><description><![CDATA[<p>N3337, [class.temporary]/3:</p>
<blockquote>
<p>Temporary objects are destroyed as the last step<br />
in evaluating the full-expression (1.9) that (lexically) contains the point where they were created.</p>
</blockquote>
<p>Edit: Mist, da kam mir jemand mit dem selben Zitat zuvor, als ich noch am Suchen war. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324451</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 19 May 2013 14:47:40 GMT</pubDate></item></channel></rss>