<?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[Speicherplatz etwas zuweisen]]></title><description><![CDATA[<p>Hallo,<br />
bei folgendem Code kommt error C2106: '=': Linker Operand muss ein L-Wert sein</p>
<pre><code class="language-cpp">pointer ptr = const_cast&lt;pointer&gt;(this-&gt;_Myptr+1);
iterator ret;
(void*)&amp;ret = (void*)ptr;
</code></pre>
<p>wie mache ich das korrekt? Ich will an die Adresse von ret den Wert ptr schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/271661/speicherplatz-etwas-zuweisen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 10:21:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/271661.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Aug 2010 20:20:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Speicherplatz etwas zuweisen on Sun, 01 Aug 2010 20:20:34 GMT]]></title><description><![CDATA[<p>Hallo,<br />
bei folgendem Code kommt error C2106: '=': Linker Operand muss ein L-Wert sein</p>
<pre><code class="language-cpp">pointer ptr = const_cast&lt;pointer&gt;(this-&gt;_Myptr+1);
iterator ret;
(void*)&amp;ret = (void*)ptr;
</code></pre>
<p>wie mache ich das korrekt? Ich will an die Adresse von ret den Wert ptr schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1934875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1934875</guid><dc:creator><![CDATA[fdgdg]]></dc:creator><pubDate>Sun, 01 Aug 2010 20:20:34 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherplatz etwas zuweisen on Sun, 01 Aug 2010 20:25:33 GMT]]></title><description><![CDATA[<p>Sieht ganz schön fricklig aus...</p>
<p>aber um die Frage zu beantworten:</p>
<pre><code class="language-cpp">*reinterpret_cast&lt;pointer*&gt;(&amp;ret)=ptr;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1934878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1934878</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Sun, 01 Aug 2010 20:25:33 GMT</pubDate></item><item><title><![CDATA[Reply to Speicherplatz etwas zuweisen on Sun, 01 Aug 2010 20:28:12 GMT]]></title><description><![CDATA[<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1934879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1934879</guid><dc:creator><![CDATA[fdgdg]]></dc:creator><pubDate>Sun, 01 Aug 2010 20:28:12 GMT</pubDate></item></channel></rss>