<?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[tmp und value-typ]]></title><description><![CDATA[<p>hi</p>
<p>in der allgemeinen tmp gibt man ja bool'sche werte als static const bool an. ist es schlecht diese als enum anzugeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/288781/tmp-und-value-typ</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 18:23:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/288781.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Jun 2011 18:57:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to tmp und value-typ on Wed, 22 Jun 2011 18:57:14 GMT]]></title><description><![CDATA[<p>hi</p>
<p>in der allgemeinen tmp gibt man ja bool'sche werte als static const bool an. ist es schlecht diese als enum anzugeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2082287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2082287</guid><dc:creator><![CDATA[lol_of_lolcraft]]></dc:creator><pubDate>Wed, 22 Jun 2011 18:57:14 GMT</pubDate></item><item><title><![CDATA[Reply to tmp und value-typ on Wed, 22 Jun 2011 19:00:12 GMT]]></title><description><![CDATA[<p>Als Vorteil hat es nur den Speicherverbrauch (meist ein Byte weniger). Und als Nachteil den falschen Typ ( <code>int</code> statt <code>bool</code> ). Ich würde bei <code>const static bool</code> bleiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2082290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2082290</guid><dc:creator><![CDATA[EOutOfResources]]></dc:creator><pubDate>Wed, 22 Jun 2011 19:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to tmp und value-typ on Wed, 22 Jun 2011 22:36:26 GMT]]></title><description><![CDATA[<p>Nimm doch einfach das was du brauchst. Wenn es um eine Ja/Nein-Frage geht, dann ist eben ein bool die Antwort und kein <code>enum {ja, nein};</code> . Bei letzterem würde sich der aufmerksame Leser bloß die Frage stellen, warum da kein bool genommen wurde. Er würde sich vielleicht fragen, ob der Autor als mögliche Werte <a href="http://thedailywtf.com/Articles/What_Is_Truth_0x3f_.aspx" rel="nofollow">Ja/Nein/File not found</a> erwartet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2082382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2082382</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 22 Jun 2011 22:36:26 GMT</pubDate></item></channel></rss>