<?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[Boost Safe bool Idiom]]></title><description><![CDATA[<p>25% der Zeit verbringt der Programmierer damit festzustellen ob das was er benötigt schon vorhanden ist.</p>
<p>Gibt es eine boost- Basisklasse für das safe bool idiom?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/290582/boost-safe-bool-idiom</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 07:14:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/290582.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Jul 2011 12:43:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Boost Safe bool Idiom on Fri, 29 Jul 2011 12:44:00 GMT]]></title><description><![CDATA[<p>25% der Zeit verbringt der Programmierer damit festzustellen ob das was er benötigt schon vorhanden ist.</p>
<p>Gibt es eine boost- Basisklasse für das safe bool idiom?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2099424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2099424</guid><dc:creator><![CDATA[Mythli]]></dc:creator><pubDate>Fri, 29 Jul 2011 12:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to Boost Safe bool Idiom on Fri, 29 Jul 2011 13:06:51 GMT]]></title><description><![CDATA[<p>In boost kenne ich keine, aber hier ist eine:<br />
<a href="http://www.artima.com/cppsource/safebool3.html" rel="nofollow">http://www.artima.com/cppsource/safebool3.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2099442</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2099442</guid><dc:creator><![CDATA[Shade Of Mine]]></dc:creator><pubDate>Fri, 29 Jul 2011 13:06:51 GMT</pubDate></item><item><title><![CDATA[Reply to Boost Safe bool Idiom on Sun, 31 Jul 2011 20:59:35 GMT]]></title><description><![CDATA[<blockquote>
<p>bool_testable&lt;&gt; in Boost.Operators looks promising.</p>
<p>The reference mentions that:</p>
<p>bool_testable provides the antithesis of operator bool, such that the expression if (!p) is valid, whilst also making operator bool safer by preventing accidental conversions to integer types. ... bool_testable&lt;&gt; prevents these accidental conversions by declaring a private conversion operator to signed char, and not defining the body.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2100186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2100186</guid><dc:creator><![CDATA[Mythli]]></dc:creator><pubDate>Sun, 31 Jul 2011 20:59:35 GMT</pubDate></item></channel></rss>