<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>comp.lang.c++.moderated Google Group</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated</link>
  <description>Technical discussion of the C++ language. (Moderated)</description>
  <language>en</language>
  <item>
  <title>Re: Array vs Vector performance</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac09a6f8621c4c40/27c40fb517f24ccc?show_docid=27c40fb517f24ccc</link>
  <description>
  It indeed turned out to be an issue of _SECURE_SCL. (The tests I did &lt;br&gt; have all been with release builds). &lt;br&gt; Strangely now the vector version outperforms array. This is because &lt;br&gt; the compiler generated assembly shows loop unwinding on vector &lt;br&gt; iteration, but surprisingly not the array one.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac09a6f8621c4c40/27c40fb517f24ccc?show_docid=27c40fb517f24ccc</guid>
  <author>
  krisp...@yahoo.co.uk
  </author>
  <pubDate>Thu, 24 Jul 2008 01:58:15 UT
</pubDate>
  </item>
  <item>
  <title>Re: Array vs Vector performance</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac09a6f8621c4c40/ecc85191bd5fc611?show_docid=ecc85191bd5fc611</link>
  <description>
  First do as Mathias Gaunard says. &lt;br&gt; Even then, as Hak...@gmail.com pointed out, your test is comparing &lt;br&gt; apples to oranges. std::vector stores its elements on the heap. Your &lt;br&gt; array is statically allocated on the stack. The vector test is getting &lt;br&gt; the heap memory management overhead, a.k.a. new[] and delete[] calls.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac09a6f8621c4c40/ecc85191bd5fc611?show_docid=ecc85191bd5fc611</guid>
  <author>
  joshuamaur...@gmail.com
  </author>
  <pubDate>Thu, 24 Jul 2008 01:40:18 UT
</pubDate>
  </item>
  <item>
  <title>Re: Fat String Class</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/60d89071761a79a9/90ca8c5a13d0180f?show_docid=90ca8c5a13d0180f</link>
  <description>
  Le Chaud Lapin ha scritto: &lt;br&gt; I guess &amp;quot;language&amp;quot; is a more appropriate term than locale here, unless &lt;br&gt; with &amp;quot;locale&amp;quot; you mean other kind of contextual metadata, which is bound &lt;br&gt; to be more complex. &lt;br&gt; Ok, so... what about this: &lt;br&gt; &amp;quot;Let&#39;s eat spaghetti, a bratwurst and a crème brûlée&amp;quot; &lt;br&gt; is this English, Italian, German or French? You can&#39;t simply attach
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/60d89071761a79a9/90ca8c5a13d0180f?show_docid=90ca8c5a13d0180f</guid>
  <author>
  albertobarb...@libero.it
  (Alberto Ganesh Barbati)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:40:24 UT
</pubDate>
  </item>
  <item>
  <title>Re: Fat String Class</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/60d89071761a79a9/11ca624d229dfa02?show_docid=11ca624d229dfa02</link>
  <description>
  You will have to store a lot of external state to determine that &lt;br&gt; English &amp;quot;mine&amp;quot; can also mean &amp;quot;Mine&amp;quot; (noun) in German, or &amp;quot;verminen&amp;quot; &lt;br&gt; (verb) if it blows up. It can also mean &amp;quot;Grube&amp;quot;, or &amp;quot;Mine&amp;quot;(!) if you &lt;br&gt; dig in the ground. &lt;br&gt; The still other English &amp;quot;mine&amp;quot;, like in &amp;quot;belongs to me&amp;quot; needs even &lt;br&gt; more context.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/60d89071761a79a9/11ca624d229dfa02?show_docid=11ca624d229dfa02</guid>
  <author>
  b...@gmb.dk
  (Bo Persson)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:40:22 UT
</pubDate>
  </item>
  <item>
  <title>Re: Order of destruct of local variables</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/34a640e4a9fa984a/aa82700d1186a3ba?show_docid=aa82700d1186a3ba</link>
  <description>
  Actually, no. This reasoning does not hold in all cases. I just had a &lt;br&gt; rather long argument with a Java friend of mine over whether this &lt;br&gt; should always be the case. It is in Java. C++ is more lax than your a &lt;br&gt; priori reasoning would show. For example, the following program has &lt;br&gt; unspecified, but not undefined, behavior:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/34a640e4a9fa984a/aa82700d1186a3ba?show_docid=aa82700d1186a3ba</guid>
  <author>
  joshuamaur...@gmail.com
  </author>
  <pubDate>Thu, 24 Jul 2008 01:36:23 UT
</pubDate>
  </item>
  <item>
  <title>Re: &quot;Function Types&quot;</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ca1b799029c835d7/536d46d296725afd?show_docid=536d46d296725afd</link>
  <description>
  In fact, the two types are precisely identical. A function type is &lt;br&gt; always a pointer to a function. &lt;br&gt; The second invoke is actually doing something different.It doesn&#39;t take &lt;br&gt; a function pointer argument, but a pointer to a function pointer &lt;br&gt; argument, i.e. two indirections instead of one. There is no &amp;quot;no &lt;br&gt; indirection&amp;quot; version of function types, though you may simply strip the
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ca1b799029c835d7/536d46d296725afd?show_docid=536d46d296725afd</guid>
  <author>
  t...@math.tu-berlin.de
  (Thomas Richter)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:37:08 UT
</pubDate>
  </item>
  <item>
  <title>Re: Array vs Vector performance</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac09a6f8621c4c40/a948ec9f09cff7b9?show_docid=a948ec9f09cff7b9</link>
  <description>
  Out of curiosity: Could you show the three versions of assembly code &lt;br&gt; - or if this is deemed too much Off Topic - sent them as private mail? &lt;br&gt; I&#39;d really like to see what halves the time over a &amp;quot;straightforward&amp;quot; &lt;br&gt; assembly. &lt;br&gt; { As used to clarify or discuss C++ implementation issues assembly code would &lt;br&gt; not be off-topic. -mod }
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac09a6f8621c4c40/a948ec9f09cff7b9?show_docid=a948ec9f09cff7b9</guid>
  <author>
  poen...@htwm.de
  (Andre Poenitz)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:30:22 UT
</pubDate>
  </item>
  <item>
  <title>Re: Implementing call back functions effeciantly</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/a5cdabe5c4166064/b4efbf85c0310d18?show_docid=b4efbf85c0310d18</link>
  <description>
  You might find the Command design pattern implemented using &lt;br&gt; polymorphic function-objects to be quite useful. It&#39;s the object- &lt;br&gt; oriented implementation of callbacks &amp;amp; is usually neater than the &lt;br&gt; function pointer implementation. &lt;br&gt; regards, &lt;br&gt; Aman Angrish.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/a5cdabe5c4166064/b4efbf85c0310d18?show_docid=b4efbf85c0310d18</guid>
  <author>
  aman....@gmail.com
  </author>
  <pubDate>Thu, 24 Jul 2008 01:23:13 UT
</pubDate>
  </item>
  <item>
  <title>Re: Available C++ Libraries FAQ</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/38a1351bd56a1358/ababe74250712206?show_docid=ababe74250712206</link>
  <description>
  I have sent several updates to Nikki, some of which he has already &lt;br&gt; incorporated. So hopefully several more of the links should work now. &lt;br&gt; Regards, &lt;br&gt; Andrew Marlow
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/38a1351bd56a1358/ababe74250712206?show_docid=ababe74250712206</guid>
  <author>
  marlow.and...@googlemail.com
  </author>
  <pubDate>Thu, 24 Jul 2008 01:24:10 UT
</pubDate>
  </item>
  <item>
  <title>Singletons and destructors</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/4937a673762696b4/d128800b864143fb?show_docid=d128800b864143fb</link>
  <description>
  Hi all. &lt;br&gt; I have struggled for a couple of days with a singleton pattern. &lt;br&gt; It turned out that the cause of the problem is that the destructor &lt;br&gt; of a singleton pattern is not called unless somebody calls a &lt;br&gt; &#39;delete&#39; to a pointer to the singleton. &lt;br&gt; Below is an example, where the program reports what methods &lt;br&gt; it calls. The only way I can find to see a report from the
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/4937a673762696b4/d128800b864143fb?show_docid=d128800b864143fb</guid>
  <author>
  all...@tele.ntnu.no
  (Rune Allnor)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:23:20 UT
</pubDate>
  </item>
  <item>
  <title>Re: RValue Arrays</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/8626a7147dcb0412/c2e2d008094d579f?show_docid=c2e2d008094d579f</link>
  <description>
  Well, the lvalueness is a property of expressions, not objects &lt;br&gt; themselves, so that wouldn&#39;t be correct to say that elements of an array &lt;br&gt; are lvalues or rvalues. &lt;br&gt; Then, that&#39;s hardly an example of inheriting of a problem from C89 as &lt;br&gt; there are very different models in C and C++ in this regard: in C89 &lt;br&gt; rvalues are never objects while in C++ class rvalues always are. (Note
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/8626a7147dcb0412/c2e2d008094d579f?show_docid=c2e2d008094d579f</guid>
  <author>
  i...@unicals.com
  (Ivan A. Kosarev)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:23:21 UT
</pubDate>
  </item>
  <item>
  <title>Array of unknown bound</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/9c32adf7ee53fc4a/1ea5c8123ea8122c?show_docid=1ea5c8123ea8122c</link>
  <description>
  Hi, &lt;br&gt; $8.3.5 para 6 says &amp;quot;-6- If the type of a parameter includes a type of &lt;br&gt; the form ``pointer to array of unknown bound of T&#39;&#39; or ``reference to &lt;br&gt; array of unknown bound of T,&#39;&#39; the program is ill-formed.* &lt;br&gt; [Footnote: This excludes parameters of type ``ptr-arr-seq T2&#39;&#39; where &lt;br&gt; T2 is ``pointer to array of unknown bound of T&#39;&#39; and where ptr-arr-seq
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/9c32adf7ee53fc4a/1ea5c8123ea8122c?show_docid=1ea5c8123ea8122c</guid>
  <author>
  rkld...@gmail.com
  </author>
  <pubDate>Thu, 24 Jul 2008 01:23:50 UT
</pubDate>
  </item>
  <item>
  <title>Re: = delete - what does this do?</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/86c26132c8c3110d/64a3ba15c106aa15?show_docid=64a3ba15c106aa15</link>
  <description>
  small nit, it is &#39;delete&#39; not &#39;deleted&#39; (that would be a new keyword)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/86c26132c8c3110d/64a3ba15c106aa15?show_docid=64a3ba15c106aa15</guid>
  <author>
  francis.glassbo...@btinternet.com
  (Francis Glassborow)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:23:35 UT
</pubDate>
  </item>
  <item>
  <title>Re: ios_base::app Standard behavior</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/c235ca48af945aa6/6c192dceb2570566?show_docid=6c192dceb2570566</link>
  <description>
  francois.cppd...@free.fr ha scritto: &lt;br&gt; According to the C standard, the effect of the &amp;quot;a&amp;quot; flag is &amp;quot;all write to &lt;br&gt; the file are forced to the current end-of-file, regardless of &lt;br&gt; intervening calls to the fseek function.&amp;quot; In particular, it does not &lt;br&gt; require nor imply that the initial position of the stream should be set
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/c235ca48af945aa6/6c192dceb2570566?show_docid=6c192dceb2570566</guid>
  <author>
  albertobarb...@libero.it
  (Alberto Ganesh Barbati)
  </author>
  <pubDate>Thu, 24 Jul 2008 01:19:20 UT
</pubDate>
  </item>
  <item>
  <title>Re: RValue Arrays</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/8626a7147dcb0412/72b89d0c6e76986a?show_docid=72b89d0c6e76986a</link>
  <description>
  Both the initializations try to bound to a temporary and thus forbidden. &lt;br&gt; GCC complains about that pretty clearly. What compiler you use? &lt;br&gt; Yes, they do.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/8626a7147dcb0412/72b89d0c6e76986a?show_docid=72b89d0c6e76986a</guid>
  <author>
  i...@unicals.com
  (Ivan A. Kosarev)
  </author>
  <pubDate>Wed, 23 Jul 2008 13:28:14 UT
</pubDate>
  </item>
  </channel>
</rss>
