<?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.co.uk/group/comp.std.c++</id>
  <title type="text">comp.std.c++ Google Group</title>
  <subtitle type="text">
  Discussion about C++ language, library, standards. (Moderated)
  </subtitle>
  <link href="/group/comp.std.c++/feed/atom_v1_0_msgs.xml" rel="self" title="comp.std.c++ feed"/>
  <updated>2009-12-04T08:35:01Z</updated>
  <generator uri="http://groups.google.co.uk" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Niels Dekker - no reply address</name>
  <email>inva...@this.is.invalid</email>
  </author>
  <updated>2009-12-04T08:35:01Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/e404a9b76db6890e/6cf3a1df20f2129e?show_docid=6cf3a1df20f2129e</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/e404a9b76db6890e/6cf3a1df20f2129e?show_docid=6cf3a1df20f2129e"/>
  <title type="text">Re: Is it safe to cast std::array::data() to built-in array reference?</title>
  <summary type="html" xml:space="preserve">
  Anders Dalvander replied: &lt;br&gt; Thanks, but does it work for a non-empty std::array? Is it safe to convert &lt;br&gt; the pointer returned by std::array&amp;lt;T,N&amp;gt;::data() to a reference of type &lt;br&gt; T(&amp;amp;)[N], when N &amp;gt; 0? Aren&#39;t there any possible alignment issues that might &lt;br&gt; make such a reference useless? &lt;br&gt; Kind regards, &lt;br&gt; Niels
  </summary>
  </entry>
  <entry>
  <author>
  <name>Hyman Rosen</name>
  <email>hyro...@mail.com</email>
  </author>
  <updated>2009-12-03T18:02:24Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/93eab359b9c22455?show_docid=93eab359b9c22455</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/93eab359b9c22455?show_docid=93eab359b9c22455"/>
  <title type="text">Re: Lambda captures in N2960</title>
  <summary type="html" xml:space="preserve">
  Now wait a second. &lt;br&gt; (defparameter x 42) &lt;br&gt; (+ x x) ;; yields 84 here &lt;br&gt; (lambda (x) (+ x x)) ;; here stuck in a lambda, still 84? &lt;br&gt; Well, no, not when you introduce a new &#39;x&#39; which &lt;br&gt; hides the other one. &lt;br&gt; ;; how about this &lt;br&gt; (defmacro screw-with-environment (&amp;amp;forms) &lt;br&gt; `(let ((x -1)) ,@forms))
  </summary>
  </entry>
  <entry>
  <author>
  <name>Howard Hinnant</name>
  <email>howard.hinn...@gmail.com</email>
  </author>
  <updated>2009-12-03T18:02:26Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/c7bff2228a12d0b9/f800012970d01c5a?show_docid=f800012970d01c5a</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/c7bff2228a12d0b9/f800012970d01c5a?show_docid=f800012970d01c5a"/>
  <title type="text">Re: Is N2479 going into C++0x?</title>
  <summary type="html" xml:space="preserve">
  N2479 was looked at on 2008-02-28 by the LWG and was not forwarded to &lt;br&gt; full committee for a vote into the WP. &lt;br&gt; -Howard
  </summary>
  </entry>
  <entry>
  <author>
  <name>R.o.E</name>
  <email>rockone...@gmail.com</email>
  </author>
  <updated>2009-12-03T18:01:30Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/76f5001219762dc1/83e0fb15376b53ad?show_docid=83e0fb15376b53ad</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/76f5001219762dc1/83e0fb15376b53ad?show_docid=83e0fb15376b53ad"/>
  <title type="text">Re: Implementation of array&lt;T, N&gt;</title>
  <summary type="html" xml:space="preserve">
  Since it&#39;s not mentioned by others yet, I guess It&#39;s helpful to add &lt;br&gt; this link by Herb Sutter: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://herbsutter.wordpress.com/2009/09/02/when-is-a-zero-length-array-okay/&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; On 12月1日, 上午2时21分, &amp;quot;Johannes Schaub (litb)&amp;quot; &amp;lt;schaub-johan...@web.de&amp;gt; &lt;br&gt; wrote:
  </summary>
  </entry>
  <entry>
  <author>
  <name>Kenshin</name>
  <email>kenshin.himura.sakab...@gmail.com</email>
  </author>
  <updated>2009-12-03T18:01:28Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/1ea73b871a58954d/d57cff783b3be44c?show_docid=d57cff783b3be44c</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/1ea73b871a58954d/d57cff783b3be44c?show_docid=d57cff783b3be44c"/>
  <title type="text">Re: accumulate algorithm</title>
  <summary type="html" xml:space="preserve">
  As &amp;quot;Bo Persson&amp;quot; states: &lt;br&gt; &amp;quot;the intention is to accumulate the values into the parameter&amp;quot;.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Kaz Kylheku</name>
  <email>kkylh...@gmail.com</email>
  </author>
  <updated>2009-12-03T07:04:01Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/6db61ec624ea1b96?show_docid=6db61ec624ea1b96</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/6db61ec624ea1b96?show_docid=6db61ec624ea1b96"/>
  <title type="text">Re: Lambda captures in N2960</title>
  <summary type="html" xml:space="preserve">
  Now wait a second. &lt;br&gt; (defparameter x 42) &lt;br&gt; (+ x x) ;; yields 84 here &lt;br&gt; (lambda (x) &lt;br&gt; (+ x x)) ;; here stuck in a lambda, still 84? &lt;br&gt; ;; how about this &lt;br&gt; (defmacro screw-with-environment (&amp;amp;forms) &lt;br&gt; `(let ((x -1)) ,@forms)) &lt;br&gt; (screw-with-environment (+ x x)) ;; still 84? &lt;br&gt; If you stick a body of code somewhere where the references which emanate from
  </summary>
  </entry>
  <entry>
  <author>
  <name>Hyman Rosen</name>
  <email>hyro...@mail.com</email>
  </author>
  <updated>2009-12-03T04:30:40Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/6dc52318f9df2609?show_docid=6dc52318f9df2609</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/6dc52318f9df2609?show_docid=6dc52318f9df2609"/>
  <title type="text">Re: Lambda captures in N2960</title>
  <summary type="html" xml:space="preserve">
  Someone already pointed out why this should be - when you &lt;br&gt; take a block of code and stick it into a lambda, you should &lt;br&gt; not change its semantics. &lt;br&gt; void f(const int &amp;amp;) { } // #1 &lt;br&gt; void f( int &amp;amp;) { } // #2 &lt;br&gt; void g() { &lt;br&gt; int const x; &lt;br&gt; f(x); // Calls #1 &lt;br&gt; auto l = [=] mutable { f(x); };
  </summary>
  </entry>
  <entry>
  <author>
  <name>Anders Dalvander</name>
  <email>goo...@dalvander.com</email>
  </author>
  <updated>2009-12-03T04:24:43Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/e404a9b76db6890e/77b7326a4ab18f64?show_docid=77b7326a4ab18f64</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/e404a9b76db6890e/77b7326a4ab18f64?show_docid=77b7326a4ab18f64"/>
  <title type="text">Re: Is it safe to cast std::array::data() to built-in array reference?</title>
  <summary type="html" xml:space="preserve">
  On Dec 1, 11:38 pm, &amp;quot;Niels Dekker - no reply address&amp;quot; &lt;br&gt; It may not work if N == 0. &lt;br&gt; Regards, &lt;br&gt; Anders Dalvander
  </summary>
  </entry>
  <entry>
  <author>
  <name>Hyman Rosen</name>
  <email>hyro...@mail.com</email>
  </author>
  <updated>2009-12-03T04:27:51Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/0cd15e5fcd3d772d?show_docid=0cd15e5fcd3d772d</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/0cd15e5fcd3d772d?show_docid=0cd15e5fcd3d772d"/>
  <title type="text">Re: Lambda captures in N2960</title>
  <summary type="html" xml:space="preserve">
  Someone already pointed out why this should be - when you &lt;br&gt; take a block of code and stick it into a lambda, you should &lt;br&gt; not change its semantics. &lt;br&gt; void f(const int &amp;amp;) { } // #1 &lt;br&gt; void f( int &amp;amp;) { } // #2 &lt;br&gt; void g() { &lt;br&gt; int const x; &lt;br&gt; f(x); // Calls #1 &lt;br&gt; auto l = [=] mutable { f(x); };
  </summary>
  </entry>
  <entry>
  <author>
  <name>Johannes Schaub (litb)</name>
  <email>schaub-johan...@web.de</email>
  </author>
  <updated>2009-12-03T04:22:27Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/76f5001219762dc1/55d203a3cd6bdb0b?show_docid=55d203a3cd6bdb0b</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/76f5001219762dc1/55d203a3cd6bdb0b?show_docid=55d203a3cd6bdb0b"/>
  <title type="text">Re: Implementation of array&lt;T, N&gt;</title>
  <summary type="html" xml:space="preserve">
  I think i could have been clearer with my wording. What i meant is that you &lt;br&gt; end up having one implementation defined partial specialization with &amp;quot;&amp;lt;T, &lt;br&gt; 0&amp;gt;&amp;quot; and one you write yourself with &amp;quot;&amp;lt;int, N&amp;gt;&amp;quot;. Then a reference to type &lt;br&gt; &amp;quot;foo&amp;lt;int, 0&amp;gt;&amp;quot; is ambiguous. &lt;br&gt; In your code, you had an additional explicit specialization for &amp;quot;&amp;lt;int, 0&amp;gt;&amp;quot;,
  </summary>
  </entry>
  <entry>
  <author>
  <name>restor</name>
  <email>akrze...@gmail.com</email>
  </author>
  <updated>2009-12-03T04:24:18Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/c7bff2228a12d0b9/cbd2d169e8cc3c36?show_docid=cbd2d169e8cc3c36</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/c7bff2228a12d0b9/cbd2d169e8cc3c36?show_docid=cbd2d169e8cc3c36"/>
  <title type="text">Is N2479 going into C++0x?</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; Can anyone tell if N2479 changes will be available in C++0x? &lt;br&gt; Regards, &lt;br&gt; &amp;amp;rzej
  </summary>
  </entry>
  <entry>
  <author>
  <name>Hyman Rosen</name>
  <email>hyro...@mail.com</email>
  </author>
  <updated>2009-12-03T04:27:34Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/33d03f1cee7648c8?show_docid=33d03f1cee7648c8</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/37c52fa6fd1ea3ac/33d03f1cee7648c8?show_docid=33d03f1cee7648c8"/>
  <title type="text">Re: Lambda captures in N2960</title>
  <summary type="html" xml:space="preserve">
  Someone already pointed out why this should be - when you &lt;br&gt; take a block of code and stick it into a lambda, you should &lt;br&gt; not change its semantics. &lt;br&gt; void f(const int &amp;amp;) { } // #1 &lt;br&gt; void f( int &amp;amp;) { } // #2 &lt;br&gt; void g() { &lt;br&gt; int const x; &lt;br&gt; f(x); // Calls #1 &lt;br&gt; auto l = [=] mutable { f(x); };
  </summary>
  </entry>
  <entry>
  <author>
  <name>Kenshin</name>
  <email>kenshin.himura.sakab...@gmail.com</email>
  </author>
  <updated>2009-12-03T04:22:23Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/5cf14364e77d500c/09e0913ac83fc0c2?show_docid=09e0913ac83fc0c2</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/5cf14364e77d500c/09e0913ac83fc0c2?show_docid=09e0913ac83fc0c2"/>
  <title type="text">std::parallel?</title>
  <summary type="html" xml:space="preserve">
  Given high level parallel task libraries like Intel TBB, STAPL, Cilk+ &lt;br&gt; +, VC++ PPL, OpenMP (with current explicit task constructs), &amp;amp; also &lt;br&gt; given C++’s system of standardizing existing widespread practice, is &lt;br&gt; it too early to tell which of these libraries will form a base of a &lt;br&gt; future C++ standard parallel library?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Niels Dekker - no reply address</name>
  <email>inva...@this.is.invalid</email>
  </author>
  <updated>2009-12-01T22:38:12Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/e404a9b76db6890e/c3c255fde28836d9?show_docid=c3c255fde28836d9</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/e404a9b76db6890e/c3c255fde28836d9?show_docid=c3c255fde28836d9"/>
  <title type="text">Is it safe to cast std::array::data() to built-in array reference?</title>
  <summary type="html" xml:space="preserve">
  Can someone please tell me if the following function, &lt;br&gt; user_namespace::get_c_array, is guaranteed to get a valid reference to a &lt;br&gt; built-in array from a non-empty C++0x std::array? &lt;br&gt; namespace user_namespace &lt;br&gt; { &lt;br&gt; template &amp;lt;typename T, std::size_t N&amp;gt; &lt;br&gt; T(&amp;amp; get_c_array(std::array&amp;lt;T,N&amp;gt;&amp;amp; arg) )[N] &lt;br&gt; { &lt;br&gt; return *static_cast&amp;lt;T(*)[N]&amp;gt;(
  </summary>
  </entry>
  <entry>
  <author>
  <name>=3D?ISO-8859-1?Q?Daniel_Kr=3D FCgler?=3D</name>
  <email>daniel.krueg...@googlemail.com</email>
  </author>
  <updated>2009-12-01T22:36:49Z</updated>
  <id>http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/76f5001219762dc1/328daae64653ad55?show_docid=328daae64653ad55</id>
  <link href="http://groups.google.co.uk/group/comp.std.c++/browse_frm/thread/76f5001219762dc1/328daae64653ad55?show_docid=328daae64653ad55"/>
  <title type="text">Re: Implementation of array&lt;T, N&gt;</title>
  <summary type="html" xml:space="preserve">
  On 1 Dez., 06:53, Daniel Kr=FCgler &amp;lt;daniel.krueg...@googlemail.co m&amp;gt; &lt;br&gt; wrote: &lt;br&gt; happen? &lt;br&gt; a &lt;br&gt; The &lt;br&gt; I think my previous conclusion was incorrect and as currently &lt;br&gt; specified their is no requirement for a partial specialization. &lt;br&gt; Nevertheless such an implementation technique seems conforming &lt;br&gt; to me and my suggestion to prevent possible ambiguities is to
  </summary>
  </entry>
</feed>
