<?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: Hidden Features and Dark Corners of C++/STL</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/551869daf11a85e5/172f99aa55d1fa3a?show_docid=172f99aa55d1fa3a</link>
  <description>
  I didn&#39;t mean to be self-important, I actually haven&#39;t seen that &lt;br&gt; construction before. If I do this: &lt;br&gt; int* getintp() { return 0; } &lt;br&gt; if( int* i = getintp(), i != 0 ) &lt;br&gt; { &lt;br&gt; then I get &amp;quot;error: expected &#39;)&#39; before &#39;,&#39; token&amp;quot; from gcc 4.3.2. &lt;br&gt; This compiles though: &lt;br&gt; int* i; &lt;br&gt; if( i = getintp(), i != 0 ) &lt;br&gt; {
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/551869daf11a85e5/172f99aa55d1fa3a?show_docid=172f99aa55d1fa3a</guid>
  <author>
  use_my_alias_h...@hotmail.com
  (DeMarcus)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:52:02 UT
</pubDate>
  </item>
  <item>
  <title>Re: solution for macro</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/e9374b2e0f2567b4/83d1f19412e75ac7?show_docid=83d1f19412e75ac7</link>
  <description>
  dhun wrote: &lt;br&gt; To get the correct substitution for all macro parameters, you need &lt;br&gt; another two levels of macros. &lt;br&gt; This example give the required result: &lt;br&gt; int main(){ &lt;br&gt; int a,a_b; &lt;br&gt; a = r(b); &lt;br&gt; Bart v Ingen Schenau
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/e9374b2e0f2567b4/83d1f19412e75ac7?show_docid=83d1f19412e75ac7</guid>
  <author>
  b...@ingen.ddns.info
  (Bart van Ingen Schenau)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:52:30 UT
</pubDate>
  </item>
  <item>
  <title>Re: Check .lib is complete</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/025225fdd466c018/0a386e33092f653d?show_docid=0a386e33092f653d</link>
  <description>
  ... &lt;br&gt; You probably mean something like this (which by the way is likely to &lt;br&gt; work in various Unixes): &lt;br&gt; % nm -C libprefer.a | grep -iw U &lt;br&gt; Note that it&#39;s not enough; if the library contains foo.o and bar.o you &lt;br&gt; get to see foo.o&#39;s unresolved references to symbols in bar.o, and so &lt;br&gt; on. A static library (in the usual sense) doesn&#39;t have its internal
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/025225fdd466c018/0a386e33092f653d?show_docid=0a386e33092f653d</guid>
  <author>
  grahn+n...@snipabacken.se
  (Jorgen Grahn)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:50:51 UT
</pubDate>
  </item>
  <item>
  <title>Re: #include file optimizer</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/c5a5ba42a62a7ced/3bc285ab2c8da74b?show_docid=3bc285ab2c8da74b</link>
  <description>
  That seems to get awfully close to makeing me understand &lt;br&gt; implementation details. When that class changes and no longer requires &lt;br&gt; &amp;lt;string&amp;gt; how will I know? I don&#39;t claim the impact of unecessary &lt;br&gt; headers is always a problem, but it will never be zero and it sure &lt;br&gt; seems like a suboptimal design to have unecessary headers or force me
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/c5a5ba42a62a7ced/3bc285ab2c8da74b?show_docid=3bc285ab2c8da74b</guid>
  <author>
  smo...@exis.net
  (stan)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:50:35 UT
</pubDate>
  </item>
  <item>
  <title>Re: help on round robin tournament</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/f10df33912f341d5?show_docid=f10df33912f341d5</link>
  <description>
  Il Sat, 07 Nov 2009 18:24:03 -0600, red floyd ha scritto: &lt;br&gt; Well, I&#39;m sorry you&#39;ve misunderstood but I was asking for an advice, not &lt;br&gt; for homework (that I don&#39;t have since a long time ago). I&#39;ve also said &lt;br&gt; that I&#39;m a c++ novice, so I wated to know more about the OO programming &lt;br&gt; facing a simple problem that I was trying to solve.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/f10df33912f341d5?show_docid=f10df33912f341d5</guid>
  <author>
  ger...@gmail.com
  (mattia)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:52:58 UT
</pubDate>
  </item>
  <item>
  <title>Re: Mix Static and dynamic Polymorphism</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/0c5b975387efd1ce/079946823a30b4ce?show_docid=079946823a30b4ce</link>
  <description>
  Jun wrote: &lt;br&gt; Because PolicyA and Interface are two unrelated classes, the &lt;br&gt; PolicyA::execute() member will never be considered and overrider for &lt;br&gt; Interface::execute(). &lt;br&gt; Base&amp;lt;T&amp;gt; remains an abstract class, because it does not have an overrider &lt;br&gt; for the pure-virtual member execute() that was inherited from Interface.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/0c5b975387efd1ce/079946823a30b4ce?show_docid=079946823a30b4ce</guid>
  <author>
  b...@ingen.ddns.info
  (Bart van Ingen Schenau)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:52:22 UT
</pubDate>
  </item>
  <item>
  <title>operator+() code for objects</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/78c7d61f6e255ab1?show_docid=78c7d61f6e255ab1</link>
  <description>
  I am trying to create a simple vector class with overloaded operators &lt;br&gt; for assignment, +=, -=, +, *, etc &lt;br&gt; My code for the overloaded operators worked OK, until I tried operator+ &lt;br&gt; () &lt;br&gt; The problem is that I can not return a local variable. This is fair &lt;br&gt; enough, but I am sure that this used to work ok 10 years ago, when I
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/78c7d61f6e255ab1?show_docid=78c7d61f6e255ab1</guid>
  <author>
  andybolso...@yahoo.co.uk
  (silentway)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:52:13 UT
</pubDate>
  </item>
  <item>
  <title>Re: References vs variables - speed impacts?</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/5ffdfff47efe6b1c/c533a5cca3e855b0?show_docid=c533a5cca3e855b0</link>
  <description>
  It seem this is the crux. I reviewed the code, and found two &lt;br&gt; possible (and very likely) obstacles to removal of temporary &lt;br&gt; variables, which I depend on the compiler to do for me: &lt;br&gt; 1) Type casts. The vector contains objects of that contain &lt;br&gt; a number of size_t pointers to other elements: &lt;br&gt; class element{
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/5ffdfff47efe6b1c/c533a5cca3e855b0?show_docid=c533a5cca3e855b0</guid>
  <author>
  all...@tele.ntnu.no
  (Rune Allnor)
  </author>
  <pubDate>Sun, 08 Nov 2009 15:51:05 UT
</pubDate>
  </item>
  <item>
  <title>Re: Mix Static and dynamic Polymorphism</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/0c5b975387efd1ce/498df6114cdebaa2?show_docid=498df6114cdebaa2</link>
  <description>
  You could try inheritance chaining: &lt;br&gt; struct Interface { &lt;br&gt; virtual void run() = 0; &lt;br&gt; virtual void execute() = 0; &lt;br&gt; }; &lt;br&gt; template&amp;lt;class Itf&amp;gt; &lt;br&gt; struct PolicyA : Itf { &lt;br&gt; void execute() { &lt;br&gt; // implementing Policy A; &lt;br&gt; } &lt;br&gt; }; &lt;br&gt; template&amp;lt;class Itf&amp;gt; &lt;br&gt; struct PolicyB : Itf { &lt;br&gt; void execute() {
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/0c5b975387efd1ce/498df6114cdebaa2?show_docid=498df6114cdebaa2</guid>
  <author>
  maxim.yegorush...@gmail.com
  (Maxim Yegorushkin)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:24:34 UT
</pubDate>
  </item>
  <item>
  <title>Re: Mix Static and dynamic Polymorphism</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/0c5b975387efd1ce/34c0bd374e6ae50d?show_docid=34c0bd374e6ae50d</link>
  <description>
  First, it would be wise to include the compilation errors. &lt;br&gt; Second, I&#39;d recommend rewriting as: &lt;br&gt; struct Interface{ &lt;br&gt; virtual void run(void) = 0; &lt;br&gt; virtual void execute(void) = 0; &lt;br&gt; struct PolicyA : public Interface { &lt;br&gt; void execute(){ &lt;br&gt; // implementing Policy A; &lt;br&gt; } &lt;br&gt; struct PolicyB : public Interface {
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/0c5b975387efd1ce/34c0bd374e6ae50d?show_docid=34c0bd374e6ae50d</guid>
  <author>
  toh...@gmail.com
  (tohava)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:24:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: static_cast&lt;unsigned equivalent&gt;(signed type);</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/5573a50b65399946/b2cc9bb038f51a05?show_docid=b2cc9bb038f51a05</link>
  <description>
  Seems that these questions and so many others can be answered by the C+ &lt;br&gt; +0x draft document: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; A trivial fact for those who wonder, as I did, what means the &#39;x&#39; in &#39;C &lt;br&gt; ++0x&#39;: It is a place-holder for single decimal digit 0-9, indicating &lt;br&gt; date of release of &amp;quot;specification&amp;quot;, 2000-2009, respectively.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/5573a50b65399946/b2cc9bb038f51a05?show_docid=b2cc9bb038f51a05</guid>
  <author>
  jaibudu...@gmail.com
  (Le Chaud Lapin)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:24:26 UT
</pubDate>
  </item>
  <item>
  <title>Re: When are data structures copied</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/587ea882cea2a947/a2fc90c3d8d86e32?show_docid=a2fc90c3d8d86e32</link>
  <description>
  Current STLPort-5.2.1 and STLPort 4 bundled with the latest Sun C++ &lt;br&gt; compilers do not not use CoW. One most disappointing feature of STLPort &lt;br&gt; std::string is that the default constructor allocates storage, in other &lt;br&gt; words, a memory allocation is performed even for empty strings. &lt;br&gt; GNU std::string uses CoW. I hear that the standard interface of
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/587ea882cea2a947/a2fc90c3d8d86e32?show_docid=a2fc90c3d8d86e32</guid>
  <author>
  maxim.yegorush...@gmail.com
  (Maxim Yegorushkin)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:23:27 UT
</pubDate>
  </item>
  <item>
  <title>Re: unsorted_set::erase not O(1) when nearly empty</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/5c942d3f44069f36/e1e2b00e893252e7?show_docid=e1e2b00e893252e7</link>
  <description>
  There are interesting new (concurrent) implementations of hash tables &lt;br&gt; based on split-ordered lists. They store all elements in one long list, &lt;br&gt; so that iterating such a hash is the same as iterating a list. Google &lt;br&gt; for split-ordered list.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/5c942d3f44069f36/e1e2b00e893252e7?show_docid=e1e2b00e893252e7</guid>
  <author>
  maxim.yegorush...@gmail.com
  (Maxim Yegorushkin)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:23:41 UT
</pubDate>
  </item>
  <item>
  <title>Re: help on round robin tournament</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/1f9cf9f863bff1f0?show_docid=1f9cf9f863bff1f0</link>
  <description>
  &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.2&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/1f9cf9f863bff1f0?show_docid=1f9cf9f863bff1f0</guid>
  <author>
  no.spam.h...@its.invalid
  (red floyd)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:24:03 UT
</pubDate>
  </item>
  <item>
  <title>solution for macro</title>
  <link>http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/e9374b2e0f2567b4/286c2dfd3ec0dd4e?show_docid=286c2dfd3ec0dd4e</link>
  <description>
  Hi All, &lt;br&gt; I have a following kind of situation. &lt;br&gt; int main(){ &lt;br&gt; int a,a_b; &lt;br&gt; a = r(b); &lt;br&gt; where I need to construct a symbol ab, at the place where code is &lt;br&gt; executed. &lt;br&gt; A g++ -E test.c, however insert a space between a and b. &lt;br&gt; What could be possible solution for this?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/e9374b2e0f2567b4/286c2dfd3ec0dd4e?show_docid=286c2dfd3ec0dd4e</guid>
  <author>
  mdhua...@gmail.com
  (dhun)
  </author>
  <pubDate>Sun, 08 Nov 2009 00:23:50 UT
</pubDate>
  </item>
  </channel>
</rss>
