std::atomic_bool vs. std::atomic<bool>41036 (11/24/2009 10:38:16 PM) These types seem to have almost identical interfaces. The only
difference I see (in terms of functions that may be called -- I didn't
check the semantics of the functions) is that std::atomic offers
... Scott
Suffix Return Type Syntax.2107 (11/24/2009 8:47:31 PM) Hi. Given the below, to sum all arguments passed,
1. What should be coded in place of the "/*What goes here*/" part?
2. How can I modify this to use std::plus
[... kenshin.himura.sakabato(9)
Circumventing the restrictions of "protected" via pointers to members (DR?)183 (11/24/2009 8:46:47 PM) C++03 defines "protected" accessibility for members in 11.5
[class.protected]/1 thus:
"Except when forming a pointer to member (5.3.1), the access must be
through a pointer to, reference to, or object of t... Pavel
Standard citation difficulties for enum declarations and definitions.484 (11/22/2009 8:56:54 PM) Pardon the difficulty in reading what should be in front of my face. C
++0X refers to the n3000 draft for the rest of this post.
1) forward-declaration of enumerations, e.g.
enum test;
C++0X n3000 ap... zaimoni(38)
Library Issue #180 - what is so special about basic_string::replace575 (11/20/2009 1:18:27 AM) The insert() and erase() members of basic_string were changed from
taking iterators to taking const_iterators. However, the replace
members were not.
Library issue #180 says:
"We did not make the change i... Bo
N3000 unclear about basic_string::assign members273 (11/20/2009 1:18:00 AM) The container requirements in clause 23.2.1
[container.requirements.general] states that a containers allocator
can be replaced by copy assignment and move assignment, depending on
iterator_traits.
For ba... bop(1069)
UDL's in the C++0x library2154 (11/18/2009 8:32:06 PM) Currently, the draft C++0x library has no user-defined literals. It
seems wasteful to include them as a language feature but not include
the ability to use them for standard types. There are only two types I
... rideau3(6)
Motivation for atomic_future194 (11/19/2009 9:30:45 PM) The only motivation I can find for atomic_future is this (from N2997):
The need for an atomic_future arose from the fact that the move constructor
and both assigments made the shared_future much mor... Scott
Does std::launch::sync permit speculative execution?184 (11/19/2009 9:31:47 PM) When std::async is invoked with a std::launch::sync policy, must the invocation
of the async function be deferred until a wait or get? That is, given
auto f = std::async(std::launch::sync(), f);
...
f... Scott