<?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[cout]]></title><description><![CDATA[<p>Hallo,</p>
<p>cout ist ein Objekt vom typ ostream.</p>
<p>Es geht z.B.</p>
<pre><code>cout.write(&quot;Hallo Forum&quot;, 10 );
</code></pre>
<p>Da ich aber nicht expliziet cout anlegen muss, frag ich mich grade ob cout vielleicht statisch ist.</p>
<p>aber dann müßte der aufruf doch</p>
<pre><code>cout::write(&quot;Hallo Forum&quot;,10 ) ;
</code></pre>
<p>lauten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/314330/cout</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 04:41:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/314330.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Feb 2013 12:53:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cout on Wed, 27 Feb 2013 12:53:13 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>cout ist ein Objekt vom typ ostream.</p>
<p>Es geht z.B.</p>
<pre><code>cout.write(&quot;Hallo Forum&quot;, 10 );
</code></pre>
<p>Da ich aber nicht expliziet cout anlegen muss, frag ich mich grade ob cout vielleicht statisch ist.</p>
<p>aber dann müßte der aufruf doch</p>
<pre><code>cout::write(&quot;Hallo Forum&quot;,10 ) ;
</code></pre>
<p>lauten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2302552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302552</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Wed, 27 Feb 2013 12:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Wed, 27 Feb 2013 12:56:42 GMT]]></title><description><![CDATA[<p>cout ist eine globale Variable.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2302554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302554</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Wed, 27 Feb 2013 12:56:42 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Wed, 27 Feb 2013 18:23:14 GMT]]></title><description><![CDATA[<p>In iostream (oder in einem anderen, in iostream inkludiertem Header):</p>
<pre><code>extern ostream cout;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2302652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302652</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Wed, 27 Feb 2013 18:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Wed, 27 Feb 2013 19:03:57 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u2" rel="nofollow">Marc++us</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (auch C++0x und C++11)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2302661</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302661</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 27 Feb 2013 19:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 17:08:40 GMT]]></title><description><![CDATA[<p>wie kann ich mir selbst eine ostream Variable anlegen ? Hab Probleme mit dem Konstruktor .</p>
<pre><code>ostream mycout (   )
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2302999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302999</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Thu, 28 Feb 2013 17:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 17:09:42 GMT]]></title><description><![CDATA[<p>Wo soll Dein ostream denn hinschreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303001</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303001</guid><dc:creator><![CDATA[Eisflamme]]></dc:creator><pubDate>Thu, 28 Feb 2013 17:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 18:11:39 GMT]]></title><description><![CDATA[<p>noch gar nix. Ich würd ihn erst mal gerne anlegen. Aber es gibt ja keinen Standardkonstruktor und mit den Parametern komm ich nicht zurecht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303025</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Thu, 28 Feb 2013 18:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 18:23:25 GMT]]></title><description><![CDATA[<p>blurry333 schrieb:</p>
<blockquote>
<p>noch gar nix. Ich würd ihn erst mal gerne anlegen. Aber es gibt ja keinen Standardkonstruktor und mit den Parametern komm ich nicht zurecht.</p>
</blockquote>
<p>Also soll er eigentlich ein Zeiger auf einen echten ostream sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303031</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Thu, 28 Feb 2013 18:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 18:34:34 GMT]]></title><description><![CDATA[<p>blurry333 schrieb:</p>
<blockquote>
<p>noch gar nix. Ich würd ihn erst mal gerne anlegen. Aber es gibt ja keinen Standardkonstruktor und mit den Parametern komm ich nicht zurecht.</p>
</blockquote>
<p>Was soll ein ostream sein, der nirgendwohin schreibt (oder technisch gesprochen: Der nicht mit einem streambuf assoziiert ist.)? Solch ein Objekt macht keinen Sinn, daher kann man es auch nicht erstellen. Das wäre wie ein Sieb ohne Löcher, so etwas kann es einfach rein logisch nicht geben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303037</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 28 Feb 2013 18:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 18:52:54 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>blurry333 schrieb:</p>
<blockquote>
<p>noch gar nix. Ich würd ihn erst mal gerne anlegen. Aber es gibt ja keinen Standardkonstruktor und mit den Parametern komm ich nicht zurecht.</p>
</blockquote>
<p>Was soll ein ostream sein, der nirgendwohin schreibt (oder technisch gesprochen: Der nicht mit einem streambuf assoziiert ist.)? Solch ein Objekt macht keinen Sinn, daher kann man es auch nicht erstellen.</p>
</blockquote>
<p>Das ist völlig legal. Und es verhält sich auch völlig legal.</p>
<pre><code class="language-cpp">std::ostream mycout(0);
mycout &lt;&lt; &quot;hello, blurry&quot; &lt;&lt; std::endl;
</code></pre>
<blockquote>
<p>so etwas kann es einfach rein logisch nicht geben</p>
</blockquote>
<p>Die IOStreams verhalten sich halt manchmal entgegen der Logik. Damit muss man sich abfinden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303042</guid><dc:creator><![CDATA[paxador]]></dc:creator><pubDate>Thu, 28 Feb 2013 18:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 19:19:56 GMT]]></title><description><![CDATA[<p>paxador schrieb:</p>
<blockquote>
<p>Das ist völlig legal. Und es verhält sich auch völlig legal.</p>
<pre><code class="language-cpp">std::ostream mycout(0);
mycout &lt;&lt; &quot;hello, blurry&quot; &lt;&lt; std::endl;
</code></pre>
<blockquote>
<p>so etwas kann es einfach rein logisch nicht geben</p>
</blockquote>
<p>Die IOStreams verhalten sich halt manchmal entgegen der Logik. Damit muss man sich abfinden.</p>
</blockquote>
<p>Das ist UB.<br />
Nicht so überzeugend... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303049</guid><dc:creator><![CDATA[Furble Wurble]]></dc:creator><pubDate>Thu, 28 Feb 2013 19:19:56 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 12 Jun 2014 03:10:46 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303050</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 03:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 19:49:18 GMT]]></title><description><![CDATA[<p>Furble Wurble schrieb:</p>
<blockquote>
<p>paxador schrieb:</p>
<blockquote>
<p>Das ist völlig legal. Und es verhält sich auch völlig legal.</p>
<pre><code class="language-cpp">std::ostream mycout(0);
mycout &lt;&lt; &quot;hello, blurry&quot; &lt;&lt; std::endl;
</code></pre>
<blockquote>
<p>so etwas kann es einfach rein logisch nicht geben</p>
</blockquote>
<p>Die IOStreams verhalten sich halt manchmal entgegen der Logik. Damit muss man sich abfinden.</p>
</blockquote>
<p>Das ist UB.<br />
Nicht so überzeugend... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
</blockquote>
<p>Der Konstruktor ruft <code>init(sb)</code> auf ([basic.ios.cons]/1), danach gilt:</p>
<p>[basic.ios.cons]/3 schrieb:</p>
<blockquote>
<p>rdstate(): goodbit if sb is not a null pointer, otherwise badbit.</p>
</blockquote>
<p>Bei <code>operator&lt;&lt;</code> wird dann ein Sentry erstellt ([ostream.formatted.reqmts]/1) und geprüft und weil das badbit gesetzt ist, passiert nichts.</p>
<p>Was ist daran UB <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303057</guid><dc:creator><![CDATA[paxador]]></dc:creator><pubDate>Thu, 28 Feb 2013 19:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 20:01:33 GMT]]></title><description><![CDATA[<p>paxador schrieb:</p>
<blockquote>
<p>Furble Wurble schrieb:</p>
<blockquote>
<p>paxador schrieb:</p>
<blockquote>
<p>Das ist völlig legal. Und es verhält sich auch völlig legal.</p>
<pre><code class="language-cpp">std::ostream mycout(0);
mycout &lt;&lt; &quot;hello, blurry&quot; &lt;&lt; std::endl;
</code></pre>
<blockquote>
<p>so etwas kann es einfach rein logisch nicht geben</p>
</blockquote>
<p>Die IOStreams verhalten sich halt manchmal entgegen der Logik. Damit muss man sich abfinden.</p>
</blockquote>
<p>Das ist UB.<br />
Nicht so überzeugend... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
</blockquote>
<p>Der Konstruktor ruft <code>init(sb)</code> auf ([basic.ios.cons]/1), danach gilt:</p>
<p>[basic.ios.cons]/3 schrieb:</p>
<blockquote>
<p>rdstate(): goodbit if sb is not a null pointer, otherwise badbit.</p>
</blockquote>
<p>Bei <code>operator&lt;&lt;</code> wird dann ein Sentry erstellt ([ostream.formatted.reqmts]/1) und geprüft und weil das badbit gesetzt ist, passiert nichts.</p>
<p>Was ist daran UB <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Jupp. Hast recht. Bin reflexartig von 17.6.4.9/1 ausgegangen.<br />
War falscher Alarm... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303064</guid><dc:creator><![CDATA[Furble Wurble]]></dc:creator><pubDate>Thu, 28 Feb 2013 20:01:33 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 23:16:05 GMT]]></title><description><![CDATA[<p>Globale Variablen haben ein paar Nachteile. Beispielsweise ist es blöd Tests für die zu schreiben, die Abhängigkeiten werden verschleiert und Funktionen, die damit arbeiten, werden schlechter wartbar.</p>
<p>Das ist für cout aber egal, da es sich auf einer anderen &quot;Schicht&quot; befindet, nämlich im Standard. Ich brauche cout nicht debuggen, meine Funktionen können es nutzen ohne dass man sich Gedanken machen muss, dass wegen cout etwas nicht funktioniert, und die Abhängigkeit ist im Endeffekt zum großen Gebiet des Standards, die Schicht ist und bleibt dort.</p>
<p>Insofern ist in diesem Fall der Einsatz einer globalen Variable für cout kein Designfehler. Oder wo ist der konkrete Nachteil?</p>
<p>Und was das angeblich unlogische Verhalten der Streams bezeichnet: Ich schätze da einfach Mal, dass darauf angespielt wird, dass ein &quot;Kaputtmachen&quot; des Streams (also failbit/badbit) dazu führt, dass der Stream weiter genutzt werden kann, aber einfach nichts passiert.</p>
<p>Und dazu kann ich nur sagen: Das ist verdammt praktisch. Wer schon Mal einen Parser mit Streams geschrieben hat, dürfte wissen, was ich meine. Man muss nicht an jeder Stelle den Stream prüfen, ein paar definierte reichen aus. Und zwischenzeitlich braucht man kein UB erwarten und auch keine Exceptions fangen. Wenn man sich darauf einstellt, ist das eine sehr schöne Sache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303137</guid><dc:creator><![CDATA[Eisflamme]]></dc:creator><pubDate>Thu, 28 Feb 2013 23:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 23:29:38 GMT]]></title><description><![CDATA[<pre><code>#include &lt;iostream&gt;

using namespace std;

int main()
{
    ostream x(0);
    x&lt;&lt;&quot;Hello blurry&quot;&lt;&lt;endl;
}
</code></pre>
<p>Gibt zwar keinen Fehler, aber aufm Bildschirm erscheint da nix <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303144</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Thu, 28 Feb 2013 23:29:38 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 28 Feb 2013 23:34:00 GMT]]></title><description><![CDATA[<pre><code>#include &lt;iostream&gt;

int main()
{
 if (true)
 {
  std::cout &lt;&lt; &quot;Blurry sucks&quot; &lt;&lt; std::endl;
 }
}
</code></pre>
<p>Bei mir ist es genau andersrum! Es wird immer ausgegeben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303146</guid><dc:creator><![CDATA[ghjghj]]></dc:creator><pubDate>Thu, 28 Feb 2013 23:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 07:40:41 GMT]]></title><description><![CDATA[<p>blurry:<br />
Natürlich nicht, Du hast den Streambuf mit 0 initialisiert, was erwartest Du denn?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303181</guid><dc:creator><![CDATA[Eisflamme]]></dc:creator><pubDate>Fri, 01 Mar 2013 07:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 08:01:43 GMT]]></title><description><![CDATA[<p>blurry333 schrieb:</p>
<blockquote>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()
{
    ostream x(0);
    x&lt;&lt;&quot;Hello blurry&quot;&lt;&lt;endl;
}
</code></pre>
<p>Gibt zwar keinen Fehler, aber aufm Bildschirm erscheint da nix <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Warum auch? steht in Deinem Programm irgendwas von Bildschirm?</p>
<p>Versuche mal das:</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;streambuf&gt;

struct Foo : std::streambuf
{
protected:
    virtual int_type overflow( int_type m = traits_type::eof() )
    {
        std::cout &lt;&lt; &quot;[&quot; &lt;&lt; traits_type::to_char_type( m ) &lt;&lt; &quot;]&quot; &lt;&lt; std::endl;
        return m;
    }
};

using namespace std;

int main()
{
    Foo foo;
    ostream x(&amp;foo);
    x&lt;&lt;&quot;Hello blurry&quot;&lt;&lt;endl;
}
</code></pre>
<p>Gruß<br />
Werner</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303182</guid><dc:creator><![CDATA[Werner Salomon]]></dc:creator><pubDate>Fri, 01 Mar 2013 08:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 12:38:40 GMT]]></title><description><![CDATA[<p>Eisflamme schrieb:</p>
<blockquote>
<p>blurry:<br />
Natürlich nicht, Du hast den Streambuf mit 0 initialisiert, was erwartest Du denn?</p>
</blockquote>
<pre><code>ostream var(0)
</code></pre>
<p>Was bedeutet denn eine Initalisierung mit 0 ?? Macht das Sinn ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303286</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Fri, 01 Mar 2013 12:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 12 Jun 2014 03:10:51 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303290</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 03:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 12:47:54 GMT]]></title><description><![CDATA[<p>Nein, das wurde aber auch schon mehrfach hier gesagt. 0 wird als streambuf-Zeiger genutzt. Darum ist dieser Stream nicht mit einem streambuf assoziiert. Mit diesem Wissen kannst Du jetzt:</p>
<blockquote>
<p>Was soll ein ostream sein, der nirgendwohin schreibt (oder technisch gesprochen: Der nicht mit einem streambuf assoziiert ist.)?</p>
</blockquote>
<p>verstehen und hast somit meine Antwort &quot;Nein&quot; bestätigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303292</guid><dc:creator><![CDATA[Eisflamme]]></dc:creator><pubDate>Fri, 01 Mar 2013 12:47:54 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Thu, 12 Jun 2014 03:10:55 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303298</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 03:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 13:43:13 GMT]]></title><description><![CDATA[<p>Hm ja, man könnte den streambuf nullen, um einen Logger auszustellen oder so.</p>
<p>Und wenn der Stream einmal kaputt ist, wird das durch sentry auch sofort fest gestellt, wobei Werner Mal meinte, dass sentry Zeit kostet. Aber vermutlich liegt das am flush() oder am Lock des streambufs, was beides nicht geschieht, wenn der streambuf 0 ist. Ich wusste btw. gar nicht, dass die Streams threadsafe ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303314</guid><dc:creator><![CDATA[Eisflamme]]></dc:creator><pubDate>Fri, 01 Mar 2013 13:43:13 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 13:55:51 GMT]]></title><description><![CDATA[<p>Streams sind garantiert nicht thread-safe.</p>
<p>Für ein Logger sollte man ein Makro oder eine Funktion mit einem Makro nutzen. Dann fliegts nämlich ganz raus. Alles andere geht auf die Performance.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303326</guid><dc:creator><![CDATA[jhkhjkhjk]]></dc:creator><pubDate>Fri, 01 Mar 2013 13:55:51 GMT</pubDate></item><item><title><![CDATA[Reply to cout on Fri, 01 Mar 2013 13:57:34 GMT]]></title><description><![CDATA[<p>Dennoch nutzt mein MSVC im sentry-Objekt einen Lock und der nutzt einen Mutex. Und auf die Performance geht das so gut wie gar nicht, weil der Stream nach einem fehlerhaften Schreibversuch &quot;gefailt&quot; wird und danach nur noch das Flag abgefragt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2303327</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2303327</guid><dc:creator><![CDATA[Eisflamme]]></dc:creator><pubDate>Fri, 01 Mar 2013 13:57:34 GMT</pubDate></item></channel></rss>