<?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[error C2106: &#x27;=&#x27; : left operand must be l-value]]></title><description><![CDATA[<p>Folgendes Konstrukt:</p>
<pre><code class="language-cpp">struct RX_Feature {

	u_long uniqueId[2];
}
RX_Feature * feat = new RX_Feature();
u_long id[] = {1L,2L};
feat-&gt;uniqueId = id;
</code></pre>
<p>Letzte Zeile liefert mir den Fehler von oben:</p>
<pre><code>error C2106: '=' : left operand must be l-value
</code></pre>
<p>Allerdings ist mir beileibe nicht klar, wieso.</p>
<p>Ich mein ich versuche doch nicht 5 = var; zu definieren</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/225160/error-c2106-left-operand-must-be-l-value</link><generator>RSS for Node</generator><lastBuildDate>Thu, 01 Oct 2026 20:28:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/225160.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Oct 2008 12:27:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error C2106: &#x27;=&#x27; : left operand must be l-value on Mon, 20 Oct 2008 12:30:34 GMT]]></title><description><![CDATA[<p>Folgendes Konstrukt:</p>
<pre><code class="language-cpp">struct RX_Feature {

	u_long uniqueId[2];
}
RX_Feature * feat = new RX_Feature();
u_long id[] = {1L,2L};
feat-&gt;uniqueId = id;
</code></pre>
<p>Letzte Zeile liefert mir den Fehler von oben:</p>
<pre><code>error C2106: '=' : left operand must be l-value
</code></pre>
<p>Allerdings ist mir beileibe nicht klar, wieso.</p>
<p>Ich mein ich versuche doch nicht 5 = var; zu definieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1601646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1601646</guid><dc:creator><![CDATA[Seikilos]]></dc:creator><pubDate>Mon, 20 Oct 2008 12:30:34 GMT</pubDate></item><item><title><![CDATA[Reply to error C2106: &#x27;=&#x27; : left operand must be l-value on Mon, 20 Oct 2008 12:32:02 GMT]]></title><description><![CDATA[<p>Man kann keine Arrays zuweisen! Deshalb geht dein Code nicht. Du musst die Elemente einzeln kopieren oder am besten gleich auf C-Arrays verzichten. Nimm lieber einen <code>std::vector</code> oder ein <code>std::tr1::array</code> .</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1601651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1601651</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Mon, 20 Oct 2008 12:32:02 GMT</pubDate></item></channel></rss>