<?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[Nerv... &amp;quot;Kopyconstruktor.. bekommst net hin HILFE]]></title><description><![CDATA[<p>Code:</p>
<pre><code class="language-cpp">struct m_SRecGraph{

		BYTE bCharge;										//	Charge
		int iType;											//	Typ Hander oder Prozess
		int iNr;											//	Nummer des Schrittes
		int iCurrentRekDirektion;							//	Auswahl der SNode Alternative!!
		CTypedPtrArray&lt;CPtrArray, m_SNode*&gt; pam_SNode;		//	Alternativen

		m_SRecGraph(){}
		m_SRecGraph(const m_SRecGraph *pScr){...} // KopyKonstuktor

	};

typedef CTypedPtrArray&lt;CPtrArray, m_SRecGraph*&gt; M_Graph;
</code></pre>
<p>Bruache Kopy Konstrutor für m_SRecGraph aber es kommt fehlermeldung:</p>
<p>c:\Dokumente und Einstellungen\Boris\Eigene Dateien\Visual Studio-Projekte\simulator\SystemFramework.h(411): error C2558: class 'CTypedPtrArray&lt;BASE_CLASS,TYPE&gt;': Kein Kopierkonstruktor verfügbar oder der Kopierkonstruktor is als 'explicit' deklariert<br />
with<br />
[<br />
BASE_CLASS=CPtrArray,<br />
TYPE=CProcessParser::m_SRecGraph *<br />
]</p>
<p>Auch wenn ich:</p>
<pre><code class="language-cpp">m_SRecGraph(const m_SRecGraph &amp;*pScr){...} 
m_SRecGraph(const m_SRecGraph &amp;pScr){...}
</code></pre>
<p>mache</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/166047/nerv-quot-kopyconstruktor-bekommst-net-hin-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 04:22:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/166047.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Nov 2006 16:21:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nerv... &amp;quot;Kopyconstruktor.. bekommst net hin HILFE on Sat, 25 Nov 2006 16:21:33 GMT]]></title><description><![CDATA[<p>Code:</p>
<pre><code class="language-cpp">struct m_SRecGraph{

		BYTE bCharge;										//	Charge
		int iType;											//	Typ Hander oder Prozess
		int iNr;											//	Nummer des Schrittes
		int iCurrentRekDirektion;							//	Auswahl der SNode Alternative!!
		CTypedPtrArray&lt;CPtrArray, m_SNode*&gt; pam_SNode;		//	Alternativen

		m_SRecGraph(){}
		m_SRecGraph(const m_SRecGraph *pScr){...} // KopyKonstuktor

	};

typedef CTypedPtrArray&lt;CPtrArray, m_SRecGraph*&gt; M_Graph;
</code></pre>
<p>Bruache Kopy Konstrutor für m_SRecGraph aber es kommt fehlermeldung:</p>
<p>c:\Dokumente und Einstellungen\Boris\Eigene Dateien\Visual Studio-Projekte\simulator\SystemFramework.h(411): error C2558: class 'CTypedPtrArray&lt;BASE_CLASS,TYPE&gt;': Kein Kopierkonstruktor verfügbar oder der Kopierkonstruktor is als 'explicit' deklariert<br />
with<br />
[<br />
BASE_CLASS=CPtrArray,<br />
TYPE=CProcessParser::m_SRecGraph *<br />
]</p>
<p>Auch wenn ich:</p>
<pre><code class="language-cpp">m_SRecGraph(const m_SRecGraph &amp;*pScr){...} 
m_SRecGraph(const m_SRecGraph &amp;pScr){...}
</code></pre>
<p>mache</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181313</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Sat, 25 Nov 2006 16:21:33 GMT</pubDate></item><item><title><![CDATA[Reply to Nerv... &amp;quot;Kopyconstruktor.. bekommst net hin HILFE on Sat, 25 Nov 2006 17:04:52 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>Bruache Kopy Konstrutor für m_SRecGraph</p>
</blockquote>
<p>Nein. Du brauchst einen Copykonstruktor für CTypedPtrArray. Das sagt zumindest die Fehlermeldung. Warum verwendest du diese Klasse überhaupt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181348</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sat, 25 Nov 2006 17:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to Nerv... &amp;quot;Kopyconstruktor.. bekommst net hin HILFE on Sat, 25 Nov 2006 17:05:45 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Kopierkonstruktoren haben immer als Parameter eine <em>Referenz</em>, nicht einen Pointer auf eine Instanz der eigenen Klasse.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181350</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181350</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 25 Nov 2006 17:05:45 GMT</pubDate></item></channel></rss>