<?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[VC6.0 to VC2005]]></title><description><![CDATA[<p>Hi,<br />
ich versuche gerade ein vc6.0 proejtk in ein vc2005 Projekt zu konvertieren. Leider stosse ich immer wieder auf neue Probleme. Im moment bekomme ich eine menge Fehler, die ich mal wieder nicht zuordnen kann... Ich hoffe mir kann jemand helfen.</p>
<p>Hier der Build-Output:</p>
<blockquote>
<p>1&gt;c:\work\markus\vc2005projects\stormtest\storm\storm3dv2\iterator.h(20) : error C2146: syntax error : missing ';' before identifier 'it'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\storm3dv2\iterator.h(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(144) : warning C4346: 'QuadtreeEntity&lt;T&gt;::EntityImp' : dependent name is not a type<br />
1&gt; prefix with 'typename' to indicate a type<br />
1&gt; c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(321) : see reference to class template instantiation 'QuadtreeNode&lt;T&gt;' being compiled<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(144) : error C2059: syntax error : '&gt;'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(146) : error C2065: 'root_' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(146) : error C2275: 'QuadtreeNode&lt;T&gt;' : illegal use of this type as an expression<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(146) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(148) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(148) : error C2065: 'looseArea_' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(148) : error C3861: 'looseArea': identifier not found<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(149) : error C2327: 'QuadtreeNode&lt;T&gt;::root' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(149) : error C3861: 'root': identifier not found<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(150) : error C2143: syntax error : missing ',' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(150) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(153) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(153) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(155) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(158) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(159) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(159) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(162) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(162) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(164) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(167) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(168) : error C2065: 'radius' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(170) : error C2065: 'instance' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(178) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(180) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(180) : error C2275: 'AABB' : illegal use of this type as an expression<br />
1&gt; c:\work\markus\vc2005projects\stormtest\storm\include\c2_aabb.h(26) : see declaration of 'AABB'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(180) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(181) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(192) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(195) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(200) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(203) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(205) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(208) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(212) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(222) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(222) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(223) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2327: 'QuadtreeNode&lt;T&gt;::area' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2065: 'area' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2065: 'i' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(225) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(225) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(227) : error C2065: 'sphere' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(228) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(230) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(230) : error C2065: 'realRoot' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(230) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(234) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(235) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(239) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(239) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(240) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(242) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(244) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(244) : error C2065: 'j' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(244) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(248) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(249) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(250) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(256) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(259) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(260) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(260) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(261) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(263) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(266) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(267) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(270) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(272) : error C2065: 'result' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(272) : error C2275: 'AABB' : illegal use of this type as an expression<br />
1&gt; c:\work\markus\vc2005projects\stormtest\storm\include\c2_aabb.h(26) : see declaration of 'AABB'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(272) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(273) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(284) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(287) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(289) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(292) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(295) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(298) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(300) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(303) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(308) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(321) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(321) : fatal error C1004: unexpected end-of-file found</p>
</blockquote>
<p>Ich weiss nicht ob es sinnvoll ist denn Quellcode zu posten. Mich wundert nur das es solche Probleme gibt wobei es doch unter VC6.0 lief.</p>
<p>Die &quot;syntax error : missing..&quot; treten in so ziemlich jeder if abfrage oder auch in for-schleifen auf. Die unexpected end-of-file meldung tritt am ende eines structs auf... Die variablen i und j die als undeclared gekennzeichnet sind wurden in einer for-schleife deklariert...</p>
<p>Ich hoffe mir kann schon jemand mit dieses etwas dürftigen Informationen weiterhelfen...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/167703/vc6-0-to-vc2005</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 02:22:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/167703.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Dec 2006 07:57:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 07:57:20 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich versuche gerade ein vc6.0 proejtk in ein vc2005 Projekt zu konvertieren. Leider stosse ich immer wieder auf neue Probleme. Im moment bekomme ich eine menge Fehler, die ich mal wieder nicht zuordnen kann... Ich hoffe mir kann jemand helfen.</p>
<p>Hier der Build-Output:</p>
<blockquote>
<p>1&gt;c:\work\markus\vc2005projects\stormtest\storm\storm3dv2\iterator.h(20) : error C2146: syntax error : missing ';' before identifier 'it'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\storm3dv2\iterator.h(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(144) : warning C4346: 'QuadtreeEntity&lt;T&gt;::EntityImp' : dependent name is not a type<br />
1&gt; prefix with 'typename' to indicate a type<br />
1&gt; c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(321) : see reference to class template instantiation 'QuadtreeNode&lt;T&gt;' being compiled<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(144) : error C2059: syntax error : '&gt;'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(146) : error C2065: 'root_' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(146) : error C2275: 'QuadtreeNode&lt;T&gt;' : illegal use of this type as an expression<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(146) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(148) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(148) : error C2065: 'looseArea_' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(148) : error C3861: 'looseArea': identifier not found<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(149) : error C2327: 'QuadtreeNode&lt;T&gt;::root' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(149) : error C3861: 'root': identifier not found<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(150) : error C2143: syntax error : missing ',' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(150) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(153) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(153) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(155) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(158) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(159) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(159) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(162) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(162) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(164) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(167) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(168) : error C2065: 'radius' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(170) : error C2065: 'instance' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(178) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(180) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(180) : error C2275: 'AABB' : illegal use of this type as an expression<br />
1&gt; c:\work\markus\vc2005projects\stormtest\storm\include\c2_aabb.h(26) : see declaration of 'AABB'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(180) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(181) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(192) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(195) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(200) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(203) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(205) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(208) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(212) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(222) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(222) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(223) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2327: 'QuadtreeNode&lt;T&gt;::area' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2065: 'area' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2065: 'i' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(224) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(225) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(225) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(227) : error C2065: 'sphere' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(228) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(230) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(230) : error C2065: 'realRoot' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(230) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(234) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(235) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(239) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(239) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(240) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(242) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(244) : error C2327: 'QuadtreeNode&lt;T&gt;::looseArea' : is not a type name, static, or enumerator<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(244) : error C2065: 'j' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(244) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(248) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(249) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(250) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(256) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(259) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(260) : error C2143: syntax error : missing ')' before ';'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(260) : error C2059: syntax error : ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(261) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(263) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(266) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(267) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(270) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(272) : error C2065: 'result' : undeclared identifier<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(272) : error C2275: 'AABB' : illegal use of this type as an expression<br />
1&gt; c:\work\markus\vc2005projects\stormtest\storm\include\c2_aabb.h(26) : see declaration of 'AABB'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(272) : error C2143: syntax error : missing ',' before ')'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(273) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(284) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(287) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(289) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(292) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(295) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(298) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(300) : error C2143: syntax error : missing ';' before '{'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(303) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(308) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(321) : error C2143: syntax error : missing ';' before '}'<br />
1&gt;c:\work\markus\vc2005projects\stormtest\storm\include\c2_qtree.h(321) : fatal error C1004: unexpected end-of-file found</p>
</blockquote>
<p>Ich weiss nicht ob es sinnvoll ist denn Quellcode zu posten. Mich wundert nur das es solche Probleme gibt wobei es doch unter VC6.0 lief.</p>
<p>Die &quot;syntax error : missing..&quot; treten in so ziemlich jeder if abfrage oder auch in for-schleifen auf. Die unexpected end-of-file meldung tritt am ende eines structs auf... Die variablen i und j die als undeclared gekennzeichnet sind wurden in einer for-schleife deklariert...</p>
<p>Ich hoffe mir kann schon jemand mit dieses etwas dürftigen Informationen weiterhelfen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191524</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 07:57:20 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:12:22 GMT]]></title><description><![CDATA[<p>Das könnte mit der unterschiedlichen Scope-Zuordnung für for()-Variablen zu tun haben: laut Standard existiert eine im Schleifenkopf deklarierte Variable nur innerhalb der Schleife, aber ältere VC-Versionen packen sie mitunter in den Scope, in dem die Schleife steht.</p>
<pre><code class="language-cpp">//Korrekt laut Standard, Fehler (Neudefinition) in VC:
for(int i=0;i&lt;10;++i)
{...}
...
for(int i=0;i&lt;10;++i)
{...}

//Fehler laut Standard (undefinierte Variable), funktioniert in VC:
for(int i=0;i&lt;10;++i)
{...}
...
for(i=0;i&lt;10;++i)
{...}

//überall korrekt:
int i;
for(i=0;i&lt;10;++i)
{...}
...
for(i=0;i&lt;10;++i)
{...}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1191533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191533</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:13:48 GMT]]></title><description><![CDATA[<p>Generell hat der VC6 einigen Code verdaut, der einfach nicht Standardkonform ist. Als der Compiler gebaut wurde, war der 98er-Standard ja auch gerade erst (oder noch nicht einmal?) verabschiedet.</p>
<p>Natürlich sind Fehlermeldungen ohne Code grundsätzlich etwas dürftig <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="😉"
    /><br />
Die meisten dieser Fehler dürften jedoch auf ein Fehlen von std:: hindeuten. Alle Klassen der Standardbibliothek (vector, map, string, ...) liegen nämlich im Namensraum std. Auch typename dürfte einige Male fehlen. Das allermeiste dürte aus Folgefehlern entstehen.</p>
<p>Poste bspw. mal ein Stück aus iterator.h rund um Zeile 20 und aus c2_qtree.h rund um Zeile 144...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191535</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:13:48 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:23:48 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/10318">@CStoll</a>: Nein, daran liegt es nicht, das habe ich auch schon geprüft...</p>
<p>Kann das an irgendeiner Compileroption liegen die ich ändern muss? Mir scheint auch das er Probleme mit templates hat. Aber da das ja im Standard enthalten ist kann ich mir nicht vorstellen das es daran liegt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191537</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:22:58 GMT]]></title><description><![CDATA[<p>okay<br />
iterator.h:</p>
<pre><code class="language-cpp">template &lt;class A&gt; class ST3D_EXP_DLLAPI IteratorIM_Set : public Iterator&lt;A&gt;
{
private:
	set&lt;A&gt; *ptrset;
	set&lt;A&gt;::iterator it;  // Zeile 20

public:

	void Next()
	{
		it++;
	}

	bool IsEnd()
	{
		return it==ptrset-&gt;end();
	}

	A GetCurrent()
	{
		return (*it);
	}

	IteratorIM_Set(set&lt;A&gt; *_ptrset)
	{
		ptrset=_ptrset;
		it=ptrset-&gt;begin();
	}

	~IteratorIM_Set()
	{
	};
};
</code></pre>
<p>c2_qtree.h:</p>
<pre><code class="language-cpp">template&lt;class T&gt;
struct QuadtreeNode
{
	AABB area;
	AABB looseArea;
	VC3 position;

	QuadtreeNode&lt;T&gt; *childs[4];
	QuadtreeNode&lt;T&gt; *root;

	std::vector&lt;QuadtreeEntity&lt;T&gt;::EntityImp *&gt; entities; // Zeile 144

	QuadtreeNode(const AABB &amp;area_, const AABB &amp;looseArea_, QuadtreeNode&lt;T&gt; *root_)
	:	area(area_),
		looseArea(looseArea_),
		root(root_)
	{
		position = (area.mmin + area.mmax) * .5f;

		for(int i = 0; i &lt; 4; ++i)
			childs[i] = 0;
	}

....
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1191542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191542</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:27:16 GMT]]></title><description><![CDATA[<p>Aha, der Namespace std scheint wohl doch bekannt zu sein (wegen set). Wegen typename, die beiden Zeilen müssten z.B. so aussehen (ich machs jetzt mal mit Namensraum, der Vollständigkeit halber):</p>
<pre><code class="language-cpp">std::set&lt;A&gt; *ptrset;
	typename std::set&lt;A&gt;::iterator it;  // Zeile 20
</code></pre>
<pre><code class="language-cpp">std::vector&lt;typename QuadtreeEntity&lt;T&gt;::EntityImp *&gt; entities; // Zeile 144
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1191546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191546</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:27:16 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:33:31 GMT]]></title><description><![CDATA[<p>Hey danke, das hat meine Fehler stark reduziert! Das mit dem typename ist mir neu, wieso muss man das machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191550</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:33:31 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:36:53 GMT]]></title><description><![CDATA[<p>Weil set&lt;Type&gt;::iterator auch ein Datum sein könnte, z.B. eine konstante statische Variable im Template set. Mit typename sagst Du dem Compiler, dass iterator ein Typ (typedef, Klasse, ...) im Template set ist. Bei von Templates abhängigen Typen ist das laut Standard zwingend erforderlich (bei verschachtelten Typen abseits von Templates natürlich nicht).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191554</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:36:53 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:38:11 GMT]]></title><description><![CDATA[<p>Weil der Compiler bei Template-Klassen nicht vorhersagen kann, ob sich hinter (z.B.) set&lt;A&gt;::iterator ein Datentyp oder eine Variable verbirgt. Der nimmt normalerweise an, daß es eine Variable ist, wenn nicht, mußt du das per 'typename' kenntlich machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191556</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:38:11 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 08:58:12 GMT]]></title><description><![CDATA[<p>Super, danke für eure Hilfe!<br />
Ich konnte die Fehler auf einen (neuen) reduzieren, der mir allerdings noch viel seltsamer vorkommt als alle anderen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<blockquote>
<p>1&gt;c:\program files\microsoft visual studio 8\vc\include\xutility(2726) : error C2582: 'operator =' function is unavailable in '<code>anonymous-namespace'::Material' 1&gt; c:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(2754) : see reference to function template instantiation 'void std::\_Fill&lt;</code>anonymous-namespace'::Material*,_Ty&gt;(_FwdIt,_FwdIt,const _Ty &amp;)' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; _Ty=<code>anonymous-namespace'::Material, 1&gt; _FwdIt=</code>anonymous-namespace'::Material *<br />
1&gt; ]<br />
1&gt; c:\program files\microsoft visual studio 8\vc\include\vector(1187) : see reference to function template instantiation 'void std::fill&lt;<code>anonymous-namespace'::Material*,\_Ty&gt;(\_FwdIt,\_FwdIt,const \_Ty &amp;)' being compiled 1&gt; with 1&gt; \[ 1&gt; _Ty=</code>anonymous-namespace'::Material,<br />
1&gt; _FwdIt=<code>anonymous-namespace'::Material * 1&gt; \] 1&gt; c:\\program files\\microsoft visual studio 8\\vc\\include\\vector(1117) : while compiling class template member function 'void std::vector&lt;\_Ty&gt;::\_Insert\_n(std::\_Vector\_iterator&lt;\_Ty,\_Alloc&gt;,\_\_w64 unsigned int,const _Ty &amp;)' 1&gt; with 1&gt; \[ 1&gt; _Ty=</code>anonymous-namespace'::Material,<br />
1&gt; _Alloc=std::allocator&lt;<code>anonymous-namespace'::Material&gt; 1&gt; \] 1&gt; c:\\work\\markus\\vc2005projects\\stormtest\\storm\\storm3dv2\\storm3d\_terrain\_decalsystem.cpp(317) : see reference to class template instantiation 'std::vector&lt;_Ty&gt;' being compiled 1&gt; with 1&gt; \[ 1&gt; _Ty=</code>anonymous-namespace'::Material<br />
1&gt; ]</p>
</blockquote>
<p>Die einzige Datei die ich davon direkt nutze ist die storm3d_terrain_decalsystem.cpp. Dort verweist er auf diese Zeile:</p>
<pre><code class="language-cpp">struct Storm3D_TerrainDecalSystem::Data
{
	Storm3D &amp;storm;
	MaterialList materials; // &lt;------ C2582
	VC2I blockAmount;

	PixelShader pixelShader;
	VertexShader vertexShader;
....
</code></pre>
<p>MaterialList ist dabei ein vector:</p>
<pre><code class="language-cpp">typedef vector&lt;Material&gt; MaterialList;
</code></pre>
<p>und Material ein struct.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191564</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 08:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 09:15:52 GMT]]></title><description><![CDATA[<p>Staati schrieb:</p>
<blockquote>
<p>MaterialList ist dabei ein vector:</p>
<pre><code class="language-cpp">typedef vector&lt;Material&gt; MaterialList;
</code></pre>
<p>und Material ein struct.</p>
</blockquote>
<p>Können wir mal die genaue Definition von &quot;Material&quot; sehen? Anscheinend hat der Compiler Probleme, für die Klasse eine Default-Zuweisung zu erzeugen (das passiert normalerweise, wenn du Elemente verwendest, die keinen erreichbaren op= haben (const, Referenzen, op= wurde private deklariert,...).</p>
<p>Eventuell stört auch die Tatsache, daß die struct sich in einem anonymen Namensraum versteckt hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191574</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 14 Dec 2006 09:15:52 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 09:38:45 GMT]]></title><description><![CDATA[<p>Material struct:</p>
<pre><code class="language-cpp">struct Material
	{
		COL diffuseColor;
		shared_ptr&lt;Storm3D_Texture&gt; baseTexture;

		DecalList decals;
		int materialIndex;

		Tree &amp;tree;

		Material(Tree &amp;tree_)
		:	materialIndex(-1),
			tree(tree_)
		{
		}

		int addDecal(IStorm3D_TerrainDecalSystem::Type type, const VC3 &amp;position)
		{
			int index = (int)decals.size();
			for(unsigned int i = 0; i &lt; decals.size(); ++i)
			{
				if(decals[i].deleted)
				{
					index = i;
					break;
				}
			}

			if(index &gt;= int(decals.size()))
				decals.resize(index + 1);

			Decal &amp;decal = decals[index];
			decal.deleted = false;
			decal.position = position;
			decal.materialIndex = materialIndex;

			if(type == IStorm3D_TerrainDecalSystem::Outside)
				decal.special.x = 8.1f;
			else
				decal.special.x = 9.1f;

			decal.entity = tree.insert(&amp;decal, position, 0.001f);
			return index;
		}

		void eraseDecal(int index)
		{
			Decal &amp;decal = decals[index];

			tree.erase(decal.entity);
			decal.entity = 0;
			decal.deleted = true;
		}

		void updateDecal(int index)
		{
			Decal &amp;decal = decals[index];
			decal.calculateValues();
		}

		void apply(IDirect3DDevice9 &amp;device)
		{
			if(baseTexture)
				baseTexture-&gt;Apply(0);

			D3DXVECTOR4 diffuse(diffuseColor.r, diffuseColor.g, diffuseColor.b, 1.f);
			device.SetVertexShaderConstantF(7, diffuse, 1);
		}
	};
</code></pre>
<p>Wieso benutzt man eigentlich anonyme namespaces? Ist es nicht das selbe wenn man den einfach weglässt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191588</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 09:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 09:38:50 GMT]]></title><description><![CDATA[<p>Und da haben wir auch schon den Übeltäter: Das Element <code>Tree&amp; Tree;</code> in Zeile 9 kann nicht zugewiesen werden, deshalb streikt der Compiler und du mußt dir selber einen operator= erzeugen.</p>
<p>(oder du lässt das &amp; weg und speicherst im &quot;Material&quot; eine Kopie des übergebenen &quot;Tree&quot;)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191591</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 14 Dec 2006 09:38:50 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 09:52:56 GMT]]></title><description><![CDATA[<p>Mh ne, soweit ich das hier sehe gibt es des schon</p>
<p>Tree ist eine typedef:</p>
<pre><code class="language-cpp">typedef Quadtree&lt;Decal&gt; Tree;
</code></pre>
<p>Quadtree ist eine template classe:</p>
<pre><code class="language-cpp">template&lt;class T&gt;
class Quadtree
{
	QuadtreeNode&lt;T&gt; *root;

	Quadtree&lt;T&gt; (const Quadtree&lt;T&gt; &amp;);
	Quadtree&lt;T&gt; &amp;operator = (const Quadtree&lt;T&gt; &amp;);
...
</code></pre>
<p>also sollte das tree(tree_) im konstruktor von Material doch funktionieren oder nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191599</guid><dc:creator><![CDATA[Staati]]></dc:creator><pubDate>Thu, 14 Dec 2006 09:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 10:01:21 GMT]]></title><description><![CDATA[<p>Einen Tree kannst du auch problemlos kopieren, aber du hast eine <strong>Referenz</strong> auf einen Tree - und damit hat der Compiler Probleme. Das hängt damit zusammen, daß Referenzen nicht umgehängt werden können, also würde eine Zuweisung entweder das Grundprinzip &quot;eine Referenz zeigt immer auf die selbe Variable&quot; verletzen oder semantische Unstimmigkeiten hervorrufen (wenn du <code>mat2=mat1;</code> schreibst, willst du sicher, daß mat2 anschließend den Baum von mat 1 verwendet und nicht der (woanders benötigte) Baum von mat2 überschrieben wird). Deshalb weigert sich dein Compiler, eine Default-Zuweisung zu erzeugen - und die Fehlermeldung sagt sinngemäß &quot;ich weiß nicht, wie ich mit dieser Referenz umgehen soll, also kümmer du dich darum&quot;.</p>
<p>(und bei einer Zuweisung wird NICHT der Copy-Ctor verwendet, sondern der operator=)</p>
<p>PS: Du kannst auch statt der Referenzen Zeiger (oder Smart-Pointer) verwenden - dann hast du das Problem nicht mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191603</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 14 Dec 2006 10:01:21 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 21:55:30 GMT]]></title><description><![CDATA[<p>Mal ne blöde Frage weils irgendwie dazupasst: braucht mal laut Standard das &quot;typename&quot; auch ausserhalb von Template Code? Also ist z.B. folgendes legal oder nicht?</p>
<pre><code class="language-cpp">void foo()
{
    std::vector&lt;int&gt;::iterator it;
}
</code></pre>
<p>Ich schreibe da zumindest nie typename, und es geht immer. An der Stelle kann der Compiler es ja auch ohne Weiteres eindeutig parsen, da ja 'int' kein Template Parameter ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1192095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1192095</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Thu, 14 Dec 2006 21:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to VC6.0 to VC2005 on Thu, 14 Dec 2006 23:43:14 GMT]]></title><description><![CDATA[<p>Das ist richtig, hier kommt kein typename hin, weil std::vector&lt;int&gt; eindeutig ist, dh instanziert werden kann, und nicht noch von irgendwelchen unbekannten Template Parametern abhängig ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1192133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1192133</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Thu, 14 Dec 2006 23:43:14 GMT</pubDate></item></channel></rss>