<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com.gi/group/comp.lang.c++</id>
  <title type="text">comp.lang.c++ Google Group</title>
  <subtitle type="text">
  The object-oriented C++ language.
  </subtitle>
  <link href="/group/comp.lang.c++/feed/atom_v1_0_msgs.xml" rel="self" title="comp.lang.c++ feed"/>
  <updated>2010-03-22T01:16:57Z</updated>
  <generator uri="http://groups.google.com.gi" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <email>jl_p...@hotmail.com</email>
  </author>
  <updated>2010-03-22T01:16:57Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/ce22843b03b7665b/cc627e8925aada88?show_docid=cc627e8925aada88</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/ce22843b03b7665b/cc627e8925aada88?show_docid=cc627e8925aada88"/>
  <title type="text">Re: Is allocating large objects on the stack a good practice?</title>
  <summary type="html" xml:space="preserve">
  I believe that you should always allocate on the stack -- if you &lt;br&gt; can get away with it. Unfortunately, declaring a huge object on the &lt;br&gt; stack doesn&#39;t always work, as there are pre-set stack-size limits. &lt;br&gt; Fortunately, to do what you want (that is, allocate a large array), &lt;br&gt; you can use a std::vector, like this:
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ian Collins</name>
  <email>ian-n...@hotmail.com</email>
  </author>
  <updated>2010-03-21T22:23:58Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/bca04222e11a95e0/198b712501f54d79?show_docid=198b712501f54d79</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/bca04222e11a95e0/198b712501f54d79?show_docid=198b712501f54d79"/>
  <title type="text">Re: VS 2005 died on template (part II)</title>
  <summary type="html" xml:space="preserve">
  Yes, it is illegal, local types can not be used for template arguments.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Alex</name>
  <email>alexey.d.zait...@gmail.com</email>
  </author>
  <updated>2010-03-21T22:14:56Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/bca04222e11a95e0/06b511a93c72cebc?show_docid=06b511a93c72cebc</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/bca04222e11a95e0/06b511a93c72cebc?show_docid=06b511a93c72cebc"/>
  <title type="text">Re: VS 2005 died on template (part II)</title>
  <summary type="html" xml:space="preserve">
  MS fixed this bug in VC++ 2008. &lt;br&gt; Compiled OK (not terminated). &lt;br&gt; I used default compiler settings. &lt;br&gt; // &lt;br&gt; James,Am I right - you consider template of local type illegal. &lt;br&gt; foo(){ &lt;br&gt; typedef struct {} A; &lt;br&gt; typedef std::vector&amp;lt;A&amp;gt; LocalTypedVector; // is it illegal? &lt;br&gt; G++ thinks so.
  </summary>
  </entry>
  <entry>
  <author>
  <name>jamm</name>
  <email>nos...@nomail.net</email>
  </author>
  <updated>2010-03-21T20:41:13Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/c95b344da735c34f?show_docid=c95b344da735c34f</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/c95b344da735c34f?show_docid=c95b344da735c34f"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  the C++ &amp;quot;static initialization &lt;br&gt; Just wondering, which GUI framework are you referring to?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Jonathan Lee</name>
  <email>cho...@shaw.ca</email>
  </author>
  <updated>2010-03-21T19:45:21Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/175218e549583812/c85f2d6f4bee4761?show_docid=c85f2d6f4bee4761</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/175218e549583812/c85f2d6f4bee4761?show_docid=c85f2d6f4bee4761"/>
  <title type="text">Re: invalid conversion</title>
  <summary type="html" xml:space="preserve">
  This is basically the exact same error. You are passing node-&amp;gt;greater, &lt;br&gt; which is of type void*, to VertexTextureIndexMatch which is expecting &lt;br&gt; a VertexTextureIndex*. &lt;br&gt; Either cast node-&amp;gt;greater to the correct type, or change the &amp;quot;greater&amp;quot; &lt;br&gt; member of VertexTextureIndex to be of the correct type. &lt;br&gt; While we&#39;re at it, that whole function VertexTextureIndexMake() is a
  </summary>
  </entry>
  <entry>
  <author>
  <name>mickCyber</name>
  <email>cyberm...@nospam.com</email>
  </author>
  <updated>2010-03-21T15:57:23Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/175218e549583812/49bb486f96ce468b?show_docid=49bb486f96ce468b</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/175218e549583812/49bb486f96ce468b?show_docid=49bb486f96ce468b"/>
  <title type="text">Re: invalid conversion</title>
  <summary type="html" xml:space="preserve">
  Thanks Paul now i get three lines before end at: &lt;br&gt; GLuint greaterIndex = &lt;br&gt; ------ &lt;br&gt; Multiple markers at this line &lt;br&gt; - invalid conversion from ‘void*’ to &lt;br&gt; ‘OpenGLWaveFrontMaterial::Vert exTextureIndex*’ &lt;br&gt; - initializing argument 1 of ‘static GLuint &lt;br&gt; OpenGLWaveFrontMaterial::Verte xTextureIndexMatch(OpenGLWaveF rontMaterial::VertexTextureInd ex*,
  </summary>
  </entry>
  <entry>
  <author>
  <name>www.fjrjtrade.com</name>
  <email>rjtradecand...@126.com</email>
  </author>
  <updated>2010-03-21T15:15:38Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/cd428e397e8d3b24/8c936c66e95d1703?show_docid=8c936c66e95d1703</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/cd428e397e8d3b24/8c936c66e95d1703?show_docid=8c936c66e95d1703"/>
  <title type="text">♬♪♫ ♪ 2010 Cheap wholesale ED Hardy Suit, Baby Suit, Lacoste Suit ect at http://www.rijing-trade.com &lt;Paypal Payment&gt;</title>
  <summary type="html" xml:space="preserve">
  Cheap wholesale Suite &lt;br&gt; Cheap wholesale Baby Suit &lt;br&gt; Cheap wholesale Puma Suit &lt;br&gt; Cheap wholesale Adidas Suit &lt;br&gt; Cheap wholesale ED Hardy Suit &lt;br&gt; Cheap wholesale Juicy Women Suit &lt;br&gt; Cheap wholesale Lacoste Man Suit &lt;br&gt; Cheap wholesale NBA Man Suit &lt;br&gt; Cheap wholesale Nike Man Suit &lt;br&gt; More details at website: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.rijing-trade.com&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>JustBoo</name>
  <email>b...@boowho.com</email>
  </author>
  <updated>2010-03-21T14:47:46Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/ae4e3252f2550693?show_docid=ae4e3252f2550693</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/ae4e3252f2550693?show_docid=ae4e3252f2550693"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  The Singleton Pattern &lt;br&gt; Google: C++ singleton &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://en.wikipedia.org/wiki/Singleton_pattern&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; HTH
  </summary>
  </entry>
  <entry>
  <author>
  <name>Alf P. Steinbach</name>
  <email>al...@start.no</email>
  </author>
  <updated>2010-03-21T14:29:10Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/0093aa325e385af1?show_docid=0093aa325e385af1</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/0093aa325e385af1?show_docid=0093aa325e385af1"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  * SG: &lt;br&gt; No. The whole point was to have extern linkage for e.g. using functions as &lt;br&gt; template arguments[1]. You just have a sort of like invisible internal namespace &lt;br&gt; name like an UUID xxx, as if followed by (after closing of the anon namespace) &lt;br&gt; using namespace xxx; &lt;br&gt; Cheers, &lt;br&gt; - Alf
  </summary>
  </entry>
  <entry>
  <author>
  <name>SG</name>
  <email>s.gesem...@gmail.com</email>
  </author>
  <updated>2010-03-21T14:21:37Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/1376a76921acd034?show_docid=1376a76921acd034</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/1376a76921acd034?show_docid=1376a76921acd034"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  Isn&#39;t internal linkage the default linkage for everything you put in &lt;br&gt; unnamed namespaces as well? At least this is how I read §7.3.1.1/2: &lt;br&gt; &amp;quot;The use of the static keyword is deprecated when declaring &lt;br&gt; objects in a namespace scope (see annex D); the unnamed- &lt;br&gt; namespace provides a superior alternative.&amp;quot;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Alf P. Steinbach</name>
  <email>al...@start.no</email>
  </author>
  <updated>2010-03-21T14:01:52Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/f9f357014279cdbf?show_docid=f9f357014279cdbf</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/f9f357014279cdbf?show_docid=f9f357014279cdbf"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  * James Kanze: &lt;br&gt; No, ..., and yes. &lt;br&gt; Re the &amp;quot;no&amp;quot;, consider the need to use &#39;extern&#39; in referencing declarations. And &lt;br&gt; consider C. Globals are, relatively speaking, technically easy in C. &lt;br&gt; Consider also the intricacies of global reference type thingies, not to mention, &lt;br&gt; how const is an array of const? Well I&#39;m sure the standard clarifies this on a
  </summary>
  </entry>
  <entry>
  <author>
  <name>James Kanze</name>
  <email>james.ka...@gmail.com</email>
  </author>
  <updated>2010-03-21T13:56:49Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/59b4646d6daba2ce?show_docid=59b4646d6daba2ce</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/59b4646d6daba2ce?show_docid=59b4646d6daba2ce"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  If the variable is defined at namespace scope. What other &lt;br&gt; lifetime could it conceivably have? &lt;br&gt; The state of what? There are a few things that should exist for &lt;br&gt; the entire duration of a program, independently of what the &lt;br&gt; program does otherwise, but they aren&#39;t very frequent. (An &lt;br&gt; output stream for logging comes to mind, and in some cases,
  </summary>
  </entry>
  <entry>
  <author>
  <name>James Kanze</name>
  <email>james.ka...@gmail.com</email>
  </author>
  <updated>2010-03-21T13:51:54Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/efe9c35faa9d02ac?show_docid=efe9c35faa9d02ac</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/3bc4928f73a44bf9/efe9c35faa9d02ac?show_docid=efe9c35faa9d02ac"/>
  <title type="text">Re: Use static variable across multiple files??</title>
  <summary type="html" xml:space="preserve">
  Except that it doesn&#39;t. Variables defined at namespace scope &lt;br&gt; (like gValue, above) are global by default; his gValue isn&#39;t &lt;br&gt; global because he&#39;s explicitly declared it not to be, by using &lt;br&gt; the keyword static. The only time a variable at namespace scope &lt;br&gt; is &amp;quot;static&amp;quot; (more correctly, has internal linkage) by default is
  </summary>
  </entry>
  <entry>
  <author>
  <name>James Kanze</name>
  <email>james.ka...@gmail.com</email>
  </author>
  <updated>2010-03-21T13:39:40Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/71224fa9eb60d04a/2c31d9f4813a2c9e?show_docid=2c31d9f4813a2c9e</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/71224fa9eb60d04a/2c31d9f4813a2c9e?show_docid=2c31d9f4813a2c9e"/>
  <title type="text">Re: new an array of pointers</title>
  <summary type="html" xml:space="preserve">
  On Mar 19, 10:31 pm, &amp;quot;Johannes Schaub (litb)&amp;quot; &amp;lt;schaub-johan...@web.de&amp;gt; &lt;br&gt; wrote: &lt;br&gt; Good point. I hadn&#39;t considered that side of things, but you &lt;br&gt; (and Comeau) are right: the grammar for [] is &lt;br&gt; &amp;quot;postfix-expression [ expression ]&amp;quot;, and a new expression is not &lt;br&gt; a postfix-expression. &lt;br&gt; That&#39;s an interesting point. It is obviously (I think)
  </summary>
  </entry>
  <entry>
  <author>
  <name>James Kanze</name>
  <email>james.ka...@gmail.com</email>
  </author>
  <updated>2010-03-21T13:19:44Z</updated>
  <id>http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/5967082ed48e0704/2155a6e7230903bb?show_docid=2155a6e7230903bb</id>
  <link href="http://groups.google.com.gi/group/comp.lang.c++/browse_thread/thread/5967082ed48e0704/2155a6e7230903bb?show_docid=2155a6e7230903bb"/>
  <title type="text">Re: Assertion vs Exception Handling</title>
  <summary type="html" xml:space="preserve">
  Yes. It&#39;s a general rule, not an absolute. I violate it myself &lt;br&gt; in some cases[1]. In practice, I feel that keeping the function &lt;br&gt; simple and concise is more important. Not that one precludes &lt;br&gt; the other, but in my experience, if analysing the function isn&#39;t &lt;br&gt; trivial, it&#39;s more often because the function is too complicated
  </summary>
  </entry>
</feed>
