First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Why does std::basic_ios overload the unary negation operator?
Hallo, The C++ IO streams' base class std::basic_ios defines operator void*() to return a safe bool indicating !fail() and operator!() to return fail(). That makes me wonder why we need the operator!() at all. Certainly, !is would also work by implicitly calling operator void*() and negating its result. Am I ... 12 Aug 2010 08:10
Are lock free algorithms possible in C++?
Assuming I've got an atomic & fenced CAS instruction available via a library; is it possible to use this to write a lock free algorithm in C ++? Although the memory fence would prevent hardware re-ordering I'm worried that compiler could reorder memory access rendering the fence useless. For example consider the... 13 Jul 2010 04:20
Reality check: when will the next C++ be real?
Hello. Is it done yet? What's the delay? -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] ... 25 Jul 2010 09:43
Compound += operator overriding with derived classes
Dear All, I have a class named DataElem, with some specialized derived classes DataFloatElem, DataIntElem and so on. I want to create a operator (possibly a virtual operator += on the DataElem), that would be able to operate with the others. So, DataFloatElem(1.0) += DataIntElem(1) should give a DataFloat... 13 Jul 2010 18:37
will taking the address of the first element of a string break COW strings?
On 10 Jul., 21:23, dhruv <dhruvb...(a)gmail.com> wrote: So, on a slightly tangential note, will ref-counted/COW/non-contiguous implementations _most_ likely be implemented as having a separate buffer for supporting the c_str() and data() functions? Does the standard mandate the complexity of these functions? ... 11 Jul 2010 10:28
copy constructor for class with member pointer
Hello, everyone! I faced such a problem. Say I got the class: class foo { public: foo(); ~foo(); private: T* m_ptr; }; I need to implement copy constructor. So, the common signature for it is foo( const& other ). I have to take the pointer from another object, assign it to this->m_ptr and th... 13 Jul 2010 04:20
compilation error when Base Constructor calling pure virtual method
On 10 Jul., 16:06, Florian <flo...(a)wanadoo.fr> wrote: Defining the constructor in the class declaration causes (requests) it to be "inlined", such that code for the function doesn't normally get inserted into your compiler's object code except at the point where it's called--but it's not called from... 11 Jul 2010 15:57
basic_string CoW concurrency: typo in N2668, or very subtle point?
On 2 Jul., 23:14, Louis Semprini <lsempr...(a)hotmail.com> wrote: Hello, I have read ISO/IEC JTC1 SC22 WG21 N2668 (a revision of N2647, which is a revision of N2534). "Concurrency Modifications to Basic String"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2668.htm N2668 corrects a few t... 10 Jul 2010 14:54
Current FCD lambdas
Several people on this group have expressed their dissatisfaction with the current FCD's closures. Could these people elaborate on what they mean? The only thing I can think of is that currently lambdas are not polymorphic (i.e. can't templatize the lambda's parameters). Also, someone on the group suggested that ... 11 Jul 2010 14:50
basic_string CoW concurrency: typo in N2668, or very subtle point?
On Jul 2, 2:14 pm, Louis Semprini <lsempr...(a)hotmail.com> wrote: Hello, I have read ISO/IEC JTC1 SC22 WG21 N2668 (a revision of N2647, which is a revision of N2534). "Concurrency Modifications to Basic String"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2668.htm N2668 corrects a few ... 10 Jul 2010 09:24
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19