<?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[expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum.]]></title><description><![CDATA[<p>Hallo,<br />
also zu meinem Problem, der Code hat eigentlich schon immer funktioniert, jetzt habe ich an einer anderen Klasse weitergearbeitet, und auf einmal meldet er mir hier immer einen Fehler?</p>
<pre><code>#include &quot;guitypes/Layer.hpp&quot;
namespace aw
{
    namespace gui
    {

            /////////////////
            // Publicfuncs //
            /////////////////

            void AddLayer();

            void MouseMoved();

            void MouseLeftClick();
            void MouseLeftRelease();

            void Draw();

            ////////////
            // Getter //
            ////////////

            Layer *GetLayer(unsigned int);

    }
}
</code></pre>
<p>Layer ist eine Klasse.</p>
<p>error: expected constructor, destructor, or type conversion before '*' token|<br />
(bezieht sich auf die Funktion &quot;Layer *GetLayer(unsigned int);&quot;</p>
<p>Hoffe ihr könnt mir helfen</p>
<p>mfg Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/311078/expected-constructor-deconstructor-typdef-und-weiß-nicht-warum</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 00:33:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/311078.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Nov 2012 13:12:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:12:19 GMT]]></title><description><![CDATA[<p>Hallo,<br />
also zu meinem Problem, der Code hat eigentlich schon immer funktioniert, jetzt habe ich an einer anderen Klasse weitergearbeitet, und auf einmal meldet er mir hier immer einen Fehler?</p>
<pre><code>#include &quot;guitypes/Layer.hpp&quot;
namespace aw
{
    namespace gui
    {

            /////////////////
            // Publicfuncs //
            /////////////////

            void AddLayer();

            void MouseMoved();

            void MouseLeftClick();
            void MouseLeftRelease();

            void Draw();

            ////////////
            // Getter //
            ////////////

            Layer *GetLayer(unsigned int);

    }
}
</code></pre>
<p>Layer ist eine Klasse.</p>
<p>error: expected constructor, destructor, or type conversion before '*' token|<br />
(bezieht sich auf die Funktion &quot;Layer *GetLayer(unsigned int);&quot;</p>
<p>Hoffe ihr könnt mir helfen</p>
<p>mfg Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274769</guid><dc:creator><![CDATA[Alex126]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:14:43 GMT]]></title><description><![CDATA[<p><a href="http://ideone.com/aVuApo" rel="nofollow">http://ideone.com/aVuApo</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274770</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:16:21 GMT]]></title><description><![CDATA[<p>Schwer zu sagen. Könnte irgendein Tippfehler in dem Layer-Header sein.</p>
<p>Aber ein kleiner Hinweis:</p>
<p>Bei Pointern und Rückgabewerten reicht eine Forward-Deklaration, da kannst du dir das incude sparen und in die cpp-Datei veschieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274772</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274772</guid><dc:creator><![CDATA[daddy_felix]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:16:21 GMT</pubDate></item><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:19:38 GMT]]></title><description><![CDATA[<p>Warum ist denn GetLayer als eine freie Funktion deklariert? Irgendwie scheint die Klasse Layer für mich verbesserungsbedürftig zu sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274775</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274775</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:44:09 GMT]]></title><description><![CDATA[<p>Edit2: So das Problem hat sich erledigt dank diesem Thread<br />
<a href="http://www.c-plusplus.net/forum/311039" rel="nofollow">http://www.c-plusplus.net/forum/311039</a></p>
<p>Meine Header haben sie gegeneinander includiert (über Umwege...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274781</guid><dc:creator><![CDATA[Alex126]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:43:22 GMT]]></title><description><![CDATA[<p>Alex126 schrieb:</p>
<blockquote>
<p>Hat die Forward-Deklaration eigentlich einen Vorteil?</p>
</blockquote>
<p>Unter anderem eine Reduzierung der Abhängigkeiten während der Compilierung (Kann dadurch Zeit sparen). Zudem handelt es sich hier um eine Möglichkeit zyklische Verweise aufzulösen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274786</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:43:22 GMT</pubDate></item><item><title><![CDATA[Reply to expected constructor&#x2F;Deconstructor&#x2F;Typdef. Und weiß nicht warum. on Mon, 26 Nov 2012 13:45:30 GMT]]></title><description><![CDATA[<p>Und genau so ein zyklische Verweis war der Fehler.</p>
<p>Also Danke für eure Hilfe</p>
<p>mfg Alexander</p>
<p>P.S kann geschlossen werden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2274787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2274787</guid><dc:creator><![CDATA[Alex126]]></dc:creator><pubDate>Mon, 26 Nov 2012 13:45:30 GMT</pubDate></item></channel></rss>