<?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[C++11-Buch gesucht]]></title><description><![CDATA[<p>Ich hab hier von Galileo &quot;C++11 programmieren&quot; und das ist eigentlich gar nicht schlecht. Ich vermisse aber ein bisschen den Kleinkram. Gibt es ein Buch, dass auch kleine sehr interessante Änderungen/Erweiterungen aufführt? Z.B. neue Funktionen wie std::to_string?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/318032/c-11-buch-gesucht</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 11:33:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/318032.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Jun 2013 12:13:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 12:13:02 GMT]]></title><description><![CDATA[<p>Ich hab hier von Galileo &quot;C++11 programmieren&quot; und das ist eigentlich gar nicht schlecht. Ich vermisse aber ein bisschen den Kleinkram. Gibt es ein Buch, dass auch kleine sehr interessante Änderungen/Erweiterungen aufführt? Z.B. neue Funktionen wie std::to_string?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334987</guid><dc:creator><![CDATA[C++-+-+]]></dc:creator><pubDate>Fri, 28 Jun 2013 12:13:02 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 12:32:21 GMT]]></title><description><![CDATA[<p>Hi,<br />
du bist leider in eine Falle getappt. Galileo Computing ist bekannt, für die schelchtesten C++ Bücher.<br />
Nun zu den guten Büchern. Du willst also eines, das auch C++11 behandelt. Hmm, da fallen mir aktuell nur 2 ein:<br />
<a href="http://www.amazon.de/C-Primer-Stanley-B-Lippman/dp/0321714113/ref=sr_1_1?ie=UTF8&amp;qid=1372422686&amp;sr=8-1&amp;keywords=c%2B%2B+primer" rel="nofollow">http://www.amazon.de/C-Primer-Stanley-B-Lippman/dp/0321714113/ref=sr_1_1?ie=UTF8&amp;qid=1372422686&amp;sr=8-1&amp;keywords=c%2B%2B+primer</a><br />
<a href="http://www.amazon.de/C-Programming-Language-Bjarne-Stroustrup/dp/0321563840/ref=sr_1_1?s=books-intl-de&amp;ie=UTF8&amp;qid=1372422706&amp;sr=1-1&amp;keywords=c%2B%2B+language" rel="nofollow">http://www.amazon.de/C-Programming-Language-Bjarne-Stroustrup/dp/0321563840/ref=sr_1_1?s=books-intl-de&amp;ie=UTF8&amp;qid=1372422706&amp;sr=1-1&amp;keywords=c%2B%2B+language</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334990</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Fri, 28 Jun 2013 12:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 12:36:15 GMT]]></title><description><![CDATA[<p>out schrieb:</p>
<blockquote>
<p>du bist leider in eine Falle getappt. Galileo Computing ist bekannt, für die schelchtesten C++ Bücher.</p>
</blockquote>
<p>Das Buch geht aber wirklich:<br />
Gleich in den ersten Kapiteln kommen Dinge wie RAII, Exception Safety und Const Correctness dran.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334991</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Fri, 28 Jun 2013 12:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 12:46:10 GMT]]></title><description><![CDATA[<p>Nathan schrieb:</p>
<blockquote>
<p>Das Buch geht aber wirklich:</p>
</blockquote>
<p>+1. Es sind zwar viele kleine Fehler drin, aber die sollte man selbstständig erkennen können, wenn man mit C++ so weit ist, dass man sich für C++11 interessiert.</p>
<p>(Wobei ich gerade überrascht bin: Das eigentlich recht wichtige to_string steht tatsächlich nicht drin)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334993</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 28 Jun 2013 12:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 12:50:59 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Nathan schrieb:</p>
<blockquote>
<p>Das Buch geht aber wirklich:</p>
</blockquote>
<p>+1. Es sind zwar viele kleine Fehler drin, aber die sollte man selbstständig erkennen können, wenn man mit C++ so weit ist, dass man sich für C++11 interessiert.</p>
</blockquote>
<p>Zum Beispiel? Mir ist nichts derartiges aufgefallen.<br />
(Ich schaue mir aber selten Codebeispiele an, und wenn übernehme ich eh nichts daraus).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2334996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2334996</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Fri, 28 Jun 2013 12:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 13:10:14 GMT]]></title><description><![CDATA[<p>Nathan schrieb:</p>
<blockquote>
<p>Zum Beispiel? Mir ist nichts derartiges aufgefallen.</p>
</blockquote>
<p>Ich durchsuche sicherlich nicht das ganze Buch nach einem konkreten Beispiel. Aber ich habe das mal sehr aufmerksam gelesen, es kommen eben dauernd so Kleinigkeiten vor. Zum Beispiel wo wohl an einer Stelle entschieden wurde, die Bezeichner zu ändern und an anderer Stelle im Text wurde die Änderung nicht übernommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335018</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335018</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 28 Jun 2013 13:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 13:57:39 GMT]]></title><description><![CDATA[<p>Ach so, sowas meinst du.<br />
Ich dachte so Wurstbrot-Supermarkt-Geschichten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335034</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Fri, 28 Jun 2013 13:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 17:11:21 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>(Wobei ich gerade überrascht bin: Das eigentlich recht wichtige to_string steht tatsächlich nicht drin)</p>
</blockquote>
<p><code>to_string</code> ist wohl von allen Änderungen in der Standardbibliothek am unwichtigsten. Zuerst kommen Veränderungen an der Sprache selbst.</p>
<ul>
<li>
<p>Lambda-Ausdrücke ([expr.prim.lambda], §5.1.2)</p>
</li>
<li>
<p>rvalue-references, Move-Semantik und die neue Aufteilung in lvalues, xvalues, glvalues, rvalues und prvalues</p>
</li>
<li>
<p><code>decltype</code> und automatic type deduction</p>
</li>
<li>
<p>Variadic Templates</p>
</li>
<li>
<p>List-initialization ([dcl.init.list], §8.5.4)</p>
</li>
<li>
<p>brace-or-equal-initializer für nicht-statische Membervariablen ([class.mem]/5, §9.2 <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> [class.base.init]/8, §12.6.2)</p>
</li>
<li>
<p>delegating constructors ([class.base.init]/6, §12.6.2)</p>
</li>
<li>
<p>nullptr ([lex.nullptr]/7, §2.14.7)</p>
</li>
<li>
<p>user-defined literals ([lex.ext], §2.14.8)</p>
</li>
<li>
<p>Diverse neue String-Literal- ([lex.string], §2.14.5) und Zeichen-Typen ([basic.fundamental]/5, §3.9.1):</p>
</li>
<li>
<p>raw-strings</p>
</li>
<li>
<p>char16_t und char32_t</p>
</li>
<li>
<p>Die entsprechenden Präfixe u, U, u8</p>
</li>
<li>
<p>Alignment mit <code>alignof</code> , <code>alignas</code> ,... (§20.6.5 &amp; §3.11)</p>
</li>
<li>
<p><code>override</code> und <code>final</code> , <code>noexcept</code> (§15.4 &amp; §5.3.7)</p>
</li>
<li>
<p><code>thread_local</code> storage specifier und der als deprecated markierte <code>register</code></p>
</li>
<li>
<p><code>constexpr</code></p>
</li>
<li>
<p>... (!)</p>
</li>
</ul>
<p>Dazu kommt alles aus der Standardbibliothek: Tupel, Regex, Smart-Pointer, Chrono, Threads ( <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> Mutexe), Atomic, alle neuen PRNGs &amp; Distributoren ([rand]), und dann irgendwo, ganz ganz tief, noch unter <code>raw_storage_iterator</code> , liegt <code>to_string</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335069</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Fri, 28 Jun 2013 17:11:21 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 20:15:11 GMT]]></title><description><![CDATA[<p>Ist das eine offizielle Sortierung nach Wichtigkeit? Wichtig ist, was man oft benutzt. to_string zählt da ganz sicher dazu.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335104</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 28 Jun 2013 20:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 20:32:07 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ist das eine offizielle Sortierung nach Wichtigkeit? Wichtig ist, was man oft benutzt. to_string zählt da ganz sicher dazu.</p>
</blockquote>
<p>Ich hatte noch nie einen guten Anwendungsfall für to_string/stoXXX und wenn, dann waren die nicht anwendbar, weil viel zu ungenerisch (die sollten von/nach Iteratorenpaar gehen, damit ich Substrings nicht erst kopieren muss und ich to_string direkt dorthin leiten könnte, wo ich will).</p>
<p>@TE: Hier ist eine gute C++-Referenz, da hast du eine Übersicht über die Libraryfeatures: <a href="http://en.cppreference.com/w/" rel="nofollow">http://en.cppreference.com/w/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335113</guid><dc:creator><![CDATA[unordered_priority_queue]]></dc:creator><pubDate>Fri, 28 Jun 2013 20:32:07 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 22:01:19 GMT]]></title><description><![CDATA[<p>Ich bastel damit andauernd Strings für Exceptionmeldungen zusammen. Bin ich da so ungewöhnlich? So bekommt man viel leichter Information über die Ausnahmeursache in die Standardexceptions.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335126</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 28 Jun 2013 22:01:19 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 22:05:21 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich bastel damit andauernd Strings für Exceptionmeldungen zusammen. Bin ich da so ungewöhnlich? So bekommt man viel leichter Information über die Ausnahmeursache in die Standardexceptions.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335128</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335128</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Fri, 28 Jun 2013 22:05:21 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 22:43:48 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich bastel damit andauernd Strings für Exceptionmeldungen zusammen.</p>
</blockquote>
<p>Strings selber zusammenpfriemeln ... dafür gibt es sprintf, Boost.Format, <a href="http://www.stroustrup.com/C++11FAQ.html#variadic-templates" rel="nofollow">type-safe printf</a> oder einfach:</p>
<pre><code class="language-cpp">template &lt;typename T&gt; using identity = T;

template &lt;typename... Args&gt;
std::string fmt(Args&amp;&amp;... args)
{ std::ostringstream oss;
  identity&lt;bool[]&gt;{oss&lt;&lt;std::forward&lt;Args&gt;(args)...};
  return oss.str();
}

// Je nach Bedarf:
#define errfmt(...) fmt(__FILE__ &quot;:&quot;, __LINE__, &quot;: error: &quot;, __VA_ARGS__)

// oder:
struct seppj_exception : std::runtime_error {
  template &lt;typename... A&gt;
  seppj_exception(A&amp;&amp;... args) : runtime_error(fmt(std::forward&lt;A&gt;(args)...)) {}
};
throw seppj_exception(&quot;answer&quot;, '=', 42);
</code></pre>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Bin ich da so ungewöhnlich? So bekommt man viel leichter Information über die Ausnahmeursache in die Standardexceptions.</p>
</blockquote>
<p>Der Ansatz schlägt fehl, wenn du deine Anwendung mal übersetzen willst. Da ist mindestens das C++11-printf (mit möglicher Indexangabe im Format) Pflicht.</p>
<p>Auf jeden Fall würde ich das nicht direkt mit den std::exceptions machen, sondern ein bisschen mehr Abstraktion aufbauen, dann wird irgendwann auch to_string überflüssig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335130</guid><dc:creator><![CDATA[unordered_priority_queue]]></dc:creator><pubDate>Fri, 28 Jun 2013 22:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 22:52:43 GMT]]></title><description><![CDATA[<p>Jaja, dicke Templates um stringstreams benutzen, um to_string für unnötig erklären zu können. Ich glaube, du hast voll den Durchblick über den Sinn aller Features. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p><a href="http://xkcd.com/386/" rel="nofollow">http://xkcd.com/386/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335131</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 28 Jun 2013 22:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Fri, 28 Jun 2013 23:03:25 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Jaja, dicke Templates um stringstreams benutzen, um to_string für unnötig erklären zu können. Ich glaube, du hast voll den Durchblick über den Sinn aller Features. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
</blockquote>
<p>exceptions =&gt; performance egal =&gt; kurzer generischer Anwendercode wichtig =&gt; stringstream-wrapper</p>
<p>to_string passt nur, wenn performance nicht egal ist oder sich noch niemand die Mühe gemacht hat, die fmt-Funktion zu schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335132</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335132</guid><dc:creator><![CDATA[unordered_priority_queue]]></dc:creator><pubDate>Fri, 28 Jun 2013 23:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 06:30:07 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich bastel damit andauernd Strings für Exceptionmeldungen zusammen. Bin ich da so ungewöhnlich? So bekommt man viel leichter Information über die Ausnahmeursache in die Standardexceptions.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> Sehe ich genauso.</p>
<blockquote>
<p>kurzer generischer Anwendercode wichtig</p>
</blockquote>
<p>Ja, und da gehen unsere Meinungen auseinander.</p>
<p>Nur ist es trotzdem eines der unwichtigsten Features.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335159</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sat, 29 Jun 2013 06:30:07 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 06:30:35 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ist das eine offizielle Sortierung nach Wichtigkeit?</p>
</blockquote>
<p>Nein, das war nur eine Auflistung von Dingen die wichtiger ist als to_string.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335160</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sat, 29 Jun 2013 06:30:35 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 15:42:24 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich bastel damit andauernd Strings für Exceptionmeldungen zusammen. Bin ich da so ungewöhnlich? So bekommt man viel leichter Information über die Ausnahmeursache in die Standardexceptions.</p>
</blockquote>
<p>Du bist ungewöhnlich. Oder verhältst dich zumindest entgegen allgemein anerkannter C++-Richtlinen.</p>
<p><a href="http://www.boost.org/community/error_handling.html" rel="nofollow">http://www.boost.org/community/error_handling.html</a> schrieb:</p>
<blockquote>
<p><strong>Format the what() message on demand</strong>, if you feel you really must format the message. [...]</p>
<p><strong>Don't worry too much about the what() message.</strong> It's nice to have a message that a programmer stands a chance of figuring out, but you're very unlikely to be able to compose a relevant and user-comprehensible error message at the point an exception is thrown. Certainly, internationalization is beyond the scope of the exception class author. Peter Dimov makes an excellent argument that the proper use of a what() string is to serve as a key into a table of error message formatters. Now if only we could get standardized what() strings for exceptions thrown by the standard library...</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2335280</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335280</guid><dc:creator><![CDATA[stdexcept]]></dc:creator><pubDate>Sat, 29 Jun 2013 15:42:24 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 15:48:48 GMT]]></title><description><![CDATA[<p>stdexcept schrieb:</p>
<blockquote>
<p><a href="http://www.boost.org/community/error_handling.html" rel="nofollow">http://www.boost.org/community/error_handling.html</a> schrieb:</p>
<blockquote>
<p>Format the what() message on demand, if you feel you really must format the message. [...]</p>
<p>Don't worry too much about the what() message. It's nice to have a message that a programmer stands a chance of figuring out, but you're very unlikely to be able to compose a relevant and user-comprehensible error message at the point an exception is thrown. Certainly, internationalization is beyond the scope of the exception class author. Peter Dimov makes an excellent argument that the proper use of a what() string is to serve as a key into a table of error message formatters. <strong>Now if only we could get standardized what() strings for exceptions thrown by the standard library...</strong></p>
</blockquote>
</blockquote>
<p>Und wenn man schon mal dabei ist, standardisierte type_info::name.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335282</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335282</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Sat, 29 Jun 2013 15:48:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 15:55:59 GMT]]></title><description><![CDATA[<p>Nathan schrieb:</p>
<blockquote>
<p>Und wenn man schon mal dabei ist, standardisierte type_info::name.</p>
</blockquote>
<p>Was hat das damit zu tun? Abgesehen davon wird type_info::name maximal für Debuggingzwecke gebraucht.</p>
<p>Mein wichtigster Abschnitt ist hier:</p>
<blockquote>
<p>the proper use of a what() string is to serve as a key into a table of error message formatters</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2335284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335284</guid><dc:creator><![CDATA[stdexcept]]></dc:creator><pubDate>Sat, 29 Jun 2013 15:55:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 15:58:31 GMT]]></title><description><![CDATA[<p>stdexcept schrieb:</p>
<blockquote>
<p>Nathan schrieb:</p>
<blockquote>
<p>Und wenn man schon mal dabei ist, standardisierte type_info::name.</p>
</blockquote>
<p>Was hat das damit zu tun? Abgesehen davon wird type_info::name maximal für Debuggingzwecke gebraucht.</p>
<p>Mein wichtigster Abschnitt ist hier:</p>
<blockquote>
<p>the proper use of a what() string is to serve as a key into a table of error message formatters</p>
</blockquote>
</blockquote>
<p>Ja, klar.<br />
Aber wenn man schon die Exceptions-Messages standadisiert, kann man auch gleich std::type_info::name() standardisieren. Die Funktion hätte eigentlich Potenzial als Type Identifier in Object Factories, aber so...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335286</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Sat, 29 Jun 2013 15:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 16:04:49 GMT]]></title><description><![CDATA[<p>stdexcept schrieb:</p>
<blockquote>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich bastel damit andauernd Strings für Exceptionmeldungen zusammen. Bin ich da so ungewöhnlich? So bekommt man viel leichter Information über die Ausnahmeursache in die Standardexceptions.</p>
</blockquote>
<p>Du bist ungewöhnlich. Oder verhältst dich zumindest entgegen allgemein anerkannter C++-Richtlinen.</p>
</blockquote>
<p>Ich schreibe die Fehlermeldungen nicht für Benutzer. Ich schreibe sie für <strong>mich</strong>. Für mich ist die Info aus what() sehr aufschlussreich, wenn man sie bloß reinpackt. Was mit to_string trivial einfach ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335289</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335289</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 29 Jun 2013 16:04:49 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 16:18:41 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich schreibe die Fehlermeldungen nicht für Benutzer. Ich schreibe sie für <strong>mich</strong>.</p>
</blockquote>
<p>Tut mir leid, dann habe ich falsch zitiert.</p>
<blockquote>
<p>As a developer, if I have violated a precondition of a library I'm using, I don't want stack unwinding. What I want is a core dump or the equivalent - a way to inspect the state of the program at the exact point where the problem was detected. That usually means assert() or something like it.</p>
</blockquote>
<p>Es gibt nichts besseres um Programmierfehler zu finden als assert(). Ich sehe sofort das Problem und kann mir vom Debugger alles anzeigen lassen, was ich will.</p>
<p>Ich weiss noch, wie viel Zeit ich in meinem Java-Projekt reingesteckt habe, schöne Exception-Messages zu generieren (da ging das einfach mit &quot;+&quot;, ohne das verbose to_string), nur um am Ende einen Breakpoint auf jedes throw zu setzen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335294</guid><dc:creator><![CDATA[stdexcept]]></dc:creator><pubDate>Sat, 29 Jun 2013 16:18:41 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 17:03:59 GMT]]></title><description><![CDATA[<p>stdexcept schrieb:</p>
<blockquote>
<p>Ich weiss noch, wie viel Zeit ich in meinem Java-Projekt reingesteckt habe, schöne Exception-Messages zu generieren (da ging das einfach mit &quot;+&quot;, ohne das verbose to_string), nur um am Ende einen Breakpoint auf jedes throw zu setzen...</p>
</blockquote>
<p>Schließe aus deiner suboptimalen Nutzung von Features nicht auf andere.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335306</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 29 Jun 2013 17:03:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 22:11:38 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>stdexcept schrieb:</p>
<blockquote>
<p>Ich weiss noch, wie viel Zeit ich in meinem Java-Projekt reingesteckt habe, schöne Exception-Messages zu generieren (da ging das einfach mit &quot;+&quot;, ohne das verbose to_string), nur um am Ende einen Breakpoint auf jedes throw zu setzen...</p>
</blockquote>
<p>Schließe aus deiner suboptimalen Nutzung von Features nicht auf andere.</p>
</blockquote>
<p>Wäre es zu viel verlangt, ein sinvolles Beispiel von Exceptions mit ausführlicher Fehlermeldung zu bringen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335363</guid><dc:creator><![CDATA[stdexcept]]></dc:creator><pubDate>Sat, 29 Jun 2013 22:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to C++11-Buch gesucht on Sat, 29 Jun 2013 22:27:27 GMT]]></title><description><![CDATA[<p>stdexcept schrieb:</p>
<blockquote>
<p>Wäre es zu viel verlangt, ein sinvolles Beispiel von Exceptions mit ausführlicher Fehlermeldung zu bringen?</p>
</blockquote>
<pre><code>throw std::thread_exception(&quot;Troll found. Name: &quot; + username);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2335364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335364</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 29 Jun 2013 22:27:27 GMT</pubDate></item></channel></rss>