<?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.co.uk/group/comp.lang.c++.moderated</link>
  <description>Technical discussion of the C++ language. (Moderated)</description>
  <language>en</language>
  <item>
  <title>Re: help on round robin tournament</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/bdc87c2b8be66789?show_docid=bdc87c2b8be66789</link>
  <description>
  Il Sun, 08 Nov 2009 16:29:38 -0600, red floyd ha scritto: &lt;br&gt; Well, I know no comp.algorithms newsgroup...
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/bdc87c2b8be66789?show_docid=bdc87c2b8be66789</guid>
  <author>
  ger...@gmail.com
  (mattia)
  </author>
  <pubDate>Mon, 11 Nov 2009 02:28:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: #include file optimizer</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c5a5ba42a62a7ced/c18303d4333a886f?show_docid=c18303d4333a886f</link>
  <description>
  In my personal opinion this is rather unsatisfactory. &lt;br&gt; With self-contained headers (headers that include other headers as &lt;br&gt; needed) a new header dependency only triggers client recompilation, but &lt;br&gt; no editing of clients required (provided interfaces don&#39;t change). &lt;br&gt; A good practice they use in boost to ensure that headers are
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c5a5ba42a62a7ced/c18303d4333a886f?show_docid=c18303d4333a886f</guid>
  <author>
  maxim.yegorush...@gmail.com
  (Maxim Yegorushkin)
  </author>
  <pubDate>Mon, 11 Nov 2009 02:27:12 UT
</pubDate>
  </item>
  <item>
  <title>Re: help on round robin tournament</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/3b0592a0a888de7c?show_docid=3b0592a0a888de7c</link>
  <description>
  Sorry. Then you&#39;re better off asking in comp.algorithms. There&#39;s &lt;br&gt; nothing C++ specific in your question, other than your use of a deque.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/19b1bd9c2e086cdc/3b0592a0a888de7c?show_docid=3b0592a0a888de7c</guid>
  <author>
  no.spam.h...@its.invalid
  (red floyd)
  </author>
  <pubDate>Sun, 11 Nov 2009 22:29:38 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/bf4ea23c11569c2f?show_docid=bf4ea23c11569c2f</link>
  <description>
  Huh? &lt;br&gt; Get a good book. Many things changed. &lt;br&gt; Several things here: &lt;br&gt; 1. Make one-argument constructor &#39;explicit&#39; to avoid accidental &lt;br&gt; construction. &lt;br&gt; 2. Do not create a virtual destructor for objects you don&#39;t plan to use &lt;br&gt; polymorphically. &lt;br&gt; 3. You #include &amp;lt;iostream&amp;gt; but use printf() for which you didn&#39;t include any
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/bf4ea23c11569c2f?show_docid=bf4ea23c11569c2f</guid>
  <author>
  dooms...@knuut.de
  (Ulrich Eckhardt)
  </author>
  <pubDate>Sun, 11 Nov 2009 22:29:18 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/f6b4765a69fbe0e1?show_docid=f6b4765a69fbe0e1</link>
  <description>
  In article &lt;br&gt; &amp;lt;bea3b28d-235b-4b0d-8421-9fef3 ecb8...@a31g2000yqn.googlegrou ps.com&amp;gt;, &lt;br&gt; ... &lt;br&gt; And here is your problem. Your copy constructor should take its &lt;br&gt; argument by constant reference: &lt;br&gt; vec(const vec &amp;amp;rv) : mx(rv.mx) { printf(&amp;quot;in copy constr\n&amp;quot;); }; &lt;br&gt; Currently you cannot copy const objects, and so the compiler complains
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/f6b4765a69fbe0e1?show_docid=f6b4765a69fbe0e1</guid>
  <author>
  m.coll...@auckland.ac.nz
  (Matthew Collett)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:22:16 UT
</pubDate>
  </item>
  <item>
  <title>Run-time overhead of text-based storage formats for numerical data</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/35ea5d26b77007f7/6f8bed6eaf1b653b?show_docid=6f8bed6eaf1b653b</link>
  <description>
  Hi all. &lt;br&gt; A couple of weeks ago I posted a question on comp.lang.c++ about some &lt;br&gt; technicality &lt;br&gt; about binary file IO. Over the course of the discussion, I discovered &lt;br&gt; to my &lt;br&gt; amazement - and, quite frankly, horror - that there seems to be a &lt;br&gt; school of &lt;br&gt; thought that text-based storage formats are universally preferable to
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/35ea5d26b77007f7/6f8bed6eaf1b653b?show_docid=6f8bed6eaf1b653b</guid>
  <author>
  all...@tele.ntnu.no
  (Rune Allnor)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:22:11 UT
</pubDate>
  </item>
  <item>
  <title>Re: Check .lib is complete</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/025225fdd466c018/66cb4fe3408c5357?show_docid=66cb4fe3408c5357</link>
  <description>
  On Nov 2, 11:53 am, Louis Lavery &amp;lt;Lo...@LaverREMOVE.demon.co.uk &amp;gt; &lt;br&gt; wrote: &lt;br&gt; google dependency walker. It&#39;s a free download. That will go a long &lt;br&gt; way toward telling you. But even that will sometimes give an external &lt;br&gt; dependency that is not needed. &lt;br&gt; HTH
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/025225fdd466c018/66cb4fe3408c5357?show_docid=66cb4fe3408c5357</guid>
  <author>
  anonmail2...@gmail.com
  (AnonMail2005@gmail.com)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:22:09 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/127ce2d6e033b36d?show_docid=127ce2d6e033b36d</link>
  <description>
  My comments are inline with te code: &lt;br&gt; Your use of printf() (why not use iostreams?) eans that you should &lt;br&gt; include the header it s declared in: &lt;br&gt; This is your main problem. A copy constructor should take a const &lt;br&gt; reference as it&#39;s parameter - you want: &lt;br&gt; vec( const vec &amp;amp;rv) : mx(rv.mx) { printf(&amp;quot;in copy constr\n&amp;quot;); };
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/127ce2d6e033b36d?show_docid=127ce2d6e033b36d</guid>
  <author>
  nbutterworth1...@gmail.com
  (Neil Butterworth)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:16:45 UT
</pubDate>
  </item>
  <item>
  <title>Re: static_cast&lt;unsigned equivalent&gt;(signed type);</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/5573a50b65399946/f41dcba0780bec1d?show_docid=f41dcba0780bec1d</link>
  <description>
  That&#39;s what it was. Now it&#39;s a hexadecimal constant prefix.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/5573a50b65399946/f41dcba0780bec1d?show_docid=f41dcba0780bec1d</guid>
  <author>
  p...@versatilecoding.com
  (Pete Becker)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:18:54 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/356a7d36234d48cf?show_docid=356a7d36234d48cf</link>
  <description>
  silentway schrieb: &lt;br&gt; &amp;lt;snip&amp;gt; &lt;br&gt; I hope so. The problem is you copy contructor taking a refernce to not &lt;br&gt; const vec. The term A + B creates a temporary and a temporary can&#39;t be &lt;br&gt; bound to a reference to not const vec. &lt;br&gt; vec(const vec &amp;amp;rv) : mx(rv.mx) { printf(&amp;quot;in copy constr\n&amp;quot;); }; &lt;br&gt; ^^^^^ &lt;br&gt; will solve the problem.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/356a7d36234d48cf?show_docid=356a7d36234d48cf</guid>
  <author>
  myfirstn...@robitzki.de
  (Torsten Robitzki)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:17:27 UT
</pubDate>
  </item>
  <item>
  <title>Re: #include file optimizer</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c5a5ba42a62a7ced/0ed64b2f0796d2ef?show_docid=0ed64b2f0796d2ef</link>
  <description>
  In the headers-don&#39;t-include-other-he aders style, the &amp;quot;prerequisites&amp;quot; &lt;br&gt; comment will now read &lt;br&gt; // &lt;br&gt; // prerequisites: &lt;br&gt; // &amp;lt;string&amp;gt; &lt;br&gt; // &amp;lt;list&amp;gt; &lt;br&gt; // &lt;br&gt; and all clients are required to update their source code accordingly. &lt;br&gt; Hmm. I agree that it&#39;s not an ideal situation, but it seems to me &lt;br&gt; that it&#39;s basically the same as that for any other change in class x
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c5a5ba42a62a7ced/0ed64b2f0796d2ef?show_docid=0ed64b2f0796d2ef</guid>
  <author>
  clcppm-pos...@this.is.invalid
  (Jonathan Thornburg)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:18:53 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/2c8a9969275903c3?show_docid=2c8a9969275903c3</link>
  <description>
  The problem here is not actually that you cannot return a local variable, but &lt;br&gt; rather that you do not have a copy constructor that can perform the required &lt;br&gt; copy initialization of F from the value returned by your overload operator+() &lt;br&gt; (see below). &lt;br&gt; I was not seriously coding in C++ 10 years ago and have never used the Zortech
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/2c8a9969275903c3?show_docid=2c8a9969275903c3</guid>
  <author>
  paul_bibbi...@googlemail.com
  (Paul Bibbings)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:17:28 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/36be6a86ee644593?show_docid=36be6a86ee644593</link>
  <description>
  Copy constructor should have parameter passed by const reference &lt;br&gt; like this: &lt;br&gt; vec(const vec&amp;amp; rv) : mx(rv.mx) { /* wathever */ } &lt;br&gt; There is no need (I can think of) for returning const value and yes, &lt;br&gt; this method should rather be const (you do not whant to change value &lt;br&gt; in this vector while calculating its sum with A)
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/36be6a86ee644593?show_docid=36be6a86ee644593</guid>
  <author>
  marcin.sfi...@gmail.com
  (marcin.sfider@gmail.com)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:16:40 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/8d901f3279f630e0?show_docid=8d901f3279f630e0</link>
  <description>
  [snip] &lt;br&gt; Your copy constructor takes a reference-to-NON-CONST. This probably &lt;br&gt; explains the errors you&#39;re getting. &lt;br&gt; You should get rid of your copy ctor, assignment operator *and* &lt;br&gt; destructor (unless you want it to be virtual for some reason). The &lt;br&gt; compiler-generated ones are correct and should be preferred.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/8d901f3279f630e0?show_docid=8d901f3279f630e0</guid>
  <author>
  s.gesem...@gmail.com
  (SG)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:16:40 UT
</pubDate>
  </item>
  <item>
  <title>Re: operator+() code for objects</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/b9f29ab3fdc868da?show_docid=b9f29ab3fdc868da</link>
  <description>
  silentway schrieb: &lt;br&gt; Let&#39;s see... &lt;br&gt; Your copy constructor takes a non-const reference. &lt;br&gt; Your operator+ returns a temporary. If you do &lt;br&gt; vec v = a + b; &lt;br&gt; the temporary returned by op+ cannot be used to copy-construct v, &lt;br&gt; because temporaries can only be bound to const references. &lt;br&gt; So change your copy ctor to &lt;br&gt; vec(const vec &amp;amp;rv)
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/fcd915bfbc281052/b9f29ab3fdc868da?show_docid=b9f29ab3fdc868da</guid>
  <author>
  phygon_antis...@gmx.de
  (Thomas J. Gritzan)
  </author>
  <pubDate>Sun, 11 Nov 2009 20:17:33 UT
</pubDate>
  </item>
  </channel>
</rss>
