<?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: C++ FAQ</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/ff635ca42ca60e49?show_docid=ff635ca42ca60e49</link>
  <description>
  [snippage] &lt;br&gt; int e = -r / 2 ; &lt;br&gt; if ( e &amp;gt;= 0 ) e -= --x ; // I think required for r == 1 &lt;br&gt; //&amp;gt; while (true); &lt;br&gt; while(true) { &lt;br&gt; This time it&#39;s for me to note that there is some similarity in our code. &lt;br&gt; I think yours was more readable. I took the liberty of making a few &lt;br&gt; minor corrections.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/ff635ca42ca60e49?show_docid=ff635ca42ca60e49</guid>
  <author>
  lr...@superlink.net
  (LR)
  </author>
  <pubDate>Sun, 07 July 2009 09:01:02 UT
</pubDate>
  </item>
  <item>
  <title>lying typedef&#39;s</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/6118f3d406136f09/7f787059eeb595f8?show_docid=7f787059eeb595f8</link>
  <description>
  i was writing some code when vc++08 gave me a strange error once i &lt;br&gt; made a struct inside a namespace of the name of a namespace &lt;br&gt; have i found a bug in the compiler or is this undefined behavior? &lt;br&gt; because g++ works as expected &lt;br&gt; struct dummy{}; &lt;br&gt; namespace people{ &lt;br&gt; struct base{ &lt;br&gt; virtual ~base(){} &lt;br&gt; void say(){
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/6118f3d406136f09/7f787059eeb595f8?show_docid=7f787059eeb595f8</guid>
  <author>
  g3r...@gmail.com
  (something_fit)
  </author>
  <pubDate>Sun, 07 July 2009 09:03:35 UT
</pubDate>
  </item>
  <item>
  <title>Re: Enumerations with scope</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/25d89979e0184469/27d30b632c51f74e?show_docid=27d30b632c51f74e</link>
  <description>
  On Jul 3, 12:18 pm, Francis Glassborow &lt;br&gt; If your current compiler supports it, why not just use C++0x strongly &lt;br&gt; typed enums? The strongly typed enum construct (declared as enum class &lt;br&gt; {...}) provides just what you&#39;re looking for. I know on *nix, strongly &lt;br&gt; typed enums are supported as of GCC 4.4.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/25d89979e0184469/27d30b632c51f74e?show_docid=27d30b632c51f74e</guid>
  <author>
  gmrehb...@gmail.com
  (yeroen)
  </author>
  <pubDate>Sun, 07 July 2009 09:02:04 UT
</pubDate>
  </item>
  <item>
  <title>C++ typed interface to hundreds of C functions</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/604fe682ed262db1/a2ac37ae165f0a15?show_docid=a2ac37ae165f0a15</link>
  <description>
  Hi there, &lt;br&gt; I&#39;m handling pointers to &amp;quot;objects&amp;quot; described by C-style &lt;br&gt; struct (e.g. Base), and I manipulate them through a low &lt;br&gt; level C API. Sometimes a third-party binary function is &lt;br&gt; applied to two of these, giving a pointer to a third. &lt;br&gt; extern &amp;quot;C&amp;quot; Base *foo1_A1_B1_C1(Base *, Base *); &lt;br&gt; extern &amp;quot;C&amp;quot; Base *foo1_A1_B1_C2(Base *, Base *);
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/604fe682ed262db1/a2ac37ae165f0a15?show_docid=a2ac37ae165f0a15</guid>
  <author>
  graham.k...@gmail.com
  (PGK)
  </author>
  <pubDate>Sun, 07 July 2009 08:53:28 UT
</pubDate>
  </item>
  <item>
  <title>Re: Is this safe?</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c216b23047c615a8/128e8c7fdeb50fa4?show_docid=128e8c7fdeb50fa4</link>
  <description>
  First thing to note: in all libraries, aka all code which isn&#39;t &amp;quot;main &lt;br&gt; ()&amp;quot;, if you use a namespace member or static class member to implement &lt;br&gt; exposed functionality, a namespace member of static class member &lt;br&gt; during its construction in initialization of statics may try to access &lt;br&gt; your interface, and thus access your namespace member or static class
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c216b23047c615a8/128e8c7fdeb50fa4?show_docid=128e8c7fdeb50fa4</guid>
  <author>
  joshuamaur...@gmail.com
  (Joshua Maurice)
  </author>
  <pubDate>Sun, 07 July 2009 08:48:15 UT
</pubDate>
  </item>
  <item>
  <title>Re: std::fstream and buffer sizes</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c6022a7b9c7d59ee/254801f2c68d1343?show_docid=254801f2c68d1343</link>
  <description>
  It doesn&#39;t say that you have to to anything, so just supply a new &lt;br&gt; buffer. You will have to keep the buffer alive, of course, as long as &lt;br&gt; it is used. &lt;br&gt; Bo Persson
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/c6022a7b9c7d59ee/254801f2c68d1343?show_docid=254801f2c68d1343</guid>
  <author>
  b...@gmb.dk
  (Bo Persson)
  </author>
  <pubDate>Sat, 07 July 2009 21:06:20 UT
</pubDate>
  </item>
  <item>
  <title>Re: Const return type with non-class type</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/bc60c874f37e309f/e0b62b75bf124085?show_docid=e0b62b75bf124085</link>
  <description>
  litb wrote: &lt;br&gt; As far as I can see, it is neither. &lt;br&gt; Based on the rules for writing standardese, the statement in question &lt;br&gt; (&amp;quot;non-class rvalues always have cv-unqualified types.&amp;quot;) is not a &lt;br&gt; requirement on the implementation or on C++ programs, but it is a &lt;br&gt; statement of fact. It is irrefutably true (unless there is a defect in
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/bc60c874f37e309f/e0b62b75bf124085?show_docid=e0b62b75bf124085</guid>
  <author>
  b...@ingen.ddns.info
  (Bart van Ingen Schenau)
  </author>
  <pubDate>Sat, 07 July 2009 21:06:37 UT
</pubDate>
  </item>
  <item>
  <title>Re: C++ FAQ</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/3ad81e88fdc96f9d?show_docid=3ad81e88fdc96f9d</link>
  <description>
  In which case, we might mention that speed is the thing that we&#39;re &lt;br&gt; optimizing for. Optimizations for space of the executable code and &lt;br&gt; speed may conflict. Optimizing for readability will likely conflict &lt;br&gt; with optimizations for space and speed. &lt;br&gt; I agree. But would you agree that readability and space of the
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/3ad81e88fdc96f9d?show_docid=3ad81e88fdc96f9d</guid>
  <author>
  lr...@superlink.net
  (LR)
  </author>
  <pubDate>Sat, 07 July 2009 21:01:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: Mis-feature?</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/a458c586786ff236/c2af9d9090706f6e?show_docid=c2af9d9090706f6e</link>
  <description>
  You can&#39;t appeal to &amp;quot;bad design&amp;quot; whenever C++ doesn&#39;t have a feature &lt;br&gt; to support something people want to do. I have already provided a &lt;br&gt; good example, and the design is fine. Many times you have an &lt;br&gt; interface that is only designed for some subset of classes, and not &lt;br&gt; just everyone. &lt;br&gt; Your suggested workaround using inner classes and friend is not
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/a458c586786ff236/c2af9d9090706f6e?show_docid=c2af9d9090706f6e</guid>
  <author>
  and...@tomazos.com
  (Andrew Tomazos)
  </author>
  <pubDate>Sat, 07 July 2009 20:56:30 UT
</pubDate>
  </item>
  <item>
  <title>Re: C++ FAQ</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/62341d0ef8acf965?show_docid=62341d0ef8acf965</link>
  <description>
  In a language without exceptions: &lt;br&gt; main_loop( r, s, f ) &lt;br&gt; { while( ... ) &lt;br&gt; { if( some error ) &lt;br&gt; /* just return and cleanup will happen */ }} &lt;br&gt; main_open( r, s ) &lt;br&gt; { f = open( ... ); &lt;br&gt; if( f ) &lt;br&gt; { main_loop( r, s, f ); &lt;br&gt; close( f ); }} &lt;br&gt; main_connect( s ) &lt;br&gt; { r = connect( ... ); &lt;br&gt; if( r ) &lt;br&gt; { main_open( r, s );
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/62341d0ef8acf965?show_docid=62341d0ef8acf965</guid>
  <author>
  r...@zedat.fu-berlin.de
  (Stefan Ram)
  </author>
  <pubDate>Sat, 07 July 2009 20:54:44 UT
</pubDate>
  </item>
  <item>
  <title>Re: C++ FAQ</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/82f8b2e478a86c88?show_docid=82f8b2e478a86c88</link>
  <description>
  Yes and we are in the subjective area. What appeals to one person has &lt;br&gt; the reverse effect on another &lt;br&gt; s = socket(...); &lt;br&gt; if (s &amp;gt;= 0){ &lt;br&gt; r = connect(...); &lt;br&gt; if (r &amp;gt;= 0){ &lt;br&gt; f = open(...); &lt;br&gt; if (f &amp;gt;= 0){ &lt;br&gt; while (...) { &lt;br&gt; if (some error) { &lt;br&gt; // process error;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/82f8b2e478a86c88?show_docid=82f8b2e478a86c88</guid>
  <author>
  francis.glassbo...@btinternet.com
  (Francis Glassborow)
  </author>
  <pubDate>Sat, 07 July 2009 20:55:58 UT
</pubDate>
  </item>
  <item>
  <title>Re: Buffer overflow c/c++</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/370cee46f453d980/c725e3ec88d0aadb?show_docid=c725e3ec88d0aadb</link>
  <description>
  You may use boundarycheck, it&#39;s the most popular one. &lt;br&gt; ----------- &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://tactothen.blogbus.com/logs/41843522.html&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/370cee46f453d980/c725e3ec88d0aadb?show_docid=c725e3ec88d0aadb</guid>
  <author>
  tact...@gmail.com
  (Tactoth)
  </author>
  <pubDate>Sat, 07 July 2009 20:57:02 UT
</pubDate>
  </item>
  <item>
  <title>Re: Buffer overflow c/c++</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/370cee46f453d980/d416bdf9932b1e86?show_docid=d416bdf9932b1e86</link>
  <description>
  There is a great tool to find memory errors, valgrind.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/370cee46f453d980/d416bdf9932b1e86?show_docid=d416bdf9932b1e86</guid>
  <author>
  loufo...@gmail.com
  (Mathias Gaunard)
  </author>
  <pubDate>Sat, 07 July 2009 20:53:59 UT
</pubDate>
  </item>
  <item>
  <title>Re: C++ FAQ</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/08064cb8a67e56d5?show_docid=08064cb8a67e56d5</link>
  <description>
  Here it is &lt;br&gt; template &amp;lt; class F &amp;gt; inline &lt;br&gt; void circle_octant ( int r, F f ){ &lt;br&gt; int x = r ; // note that r needs to be larger than 0 &lt;br&gt; int y = 0 ; // I am not sure whether both x and y &lt;br&gt; // should be unsigned &lt;br&gt; if(r &amp;amp; 1){ &lt;br&gt; --e; &lt;br&gt; f(x,y); &lt;br&gt; e+= ++y; &lt;br&gt; } &lt;br&gt; while (true);
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/b2c55647a617eaab/08064cb8a67e56d5?show_docid=08064cb8a67e56d5</guid>
  <author>
  francis.glassbo...@btinternet.com
  (Francis Glassborow)
  </author>
  <pubDate>Sat, 07 July 2009 20:55:30 UT
</pubDate>
  </item>
  <item>
  <title>Re: how save binary file into variable ??</title>
  <link>http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/e7eb4097314a3cd9/746cdffb810f1f3f?show_docid=746cdffb810f1f3f</link>
  <description>
  If you don&#39;t know the size of the file beforehand, you can determine &lt;br&gt; the length at runtime and allocate an array that fits the file &lt;br&gt; exactly. &lt;br&gt; The following example was taken from: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://cplusplus.com/reference/iostream/istream/seekg/&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; // load a file into memory &lt;br&gt; using namespace std; &lt;br&gt; int main () { &lt;br&gt; int length;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.c++.moderated/browse_thread/thread/e7eb4097314a3cd9/746cdffb810f1f3f?show_docid=746cdffb810f1f3f</guid>
  <author>
  sjdonnell...@gmail.com
  (Steve Donnelly)
  </author>
  <pubDate>Sat, 07 July 2009 12:55:30 UT
</pubDate>
  </item>
  </channel>
</rss>
