|
some quirks of Koenig lookup rule? Michael Kilburn wrote: Hi Can someone explain this peculiar behavior of MSVC & GCC: code below, if you uncomment that line (which is totally unrelated to 'dph' class), will stop compiling with usual bizzare C++ error [code] #include <iostream> namespace AAA { struct gad { ... 6 May 2008 22:21
A proposal to cancel overriding the DEFAULT operator new/delete xushiwei ha scritto: http://xushiwei.com/cancel-overriding-the-default-operator-new-delete * Motivation I don't think we need to override the DEFAULT operator new/delete. This makes your code doesn't work well together 3rdparty code (if it also overrides them). Why overriding the DEFAULT o... 6 May 2008 22:21
Calling shared_from_this inside object's constructor There's an interesting thread on boost.devel mailing list regarding calling shared_from_this inside the object constructor (which is illegal in current implementation), with an implementation of this functionality against boost's shared_ptr, trunk version. I think this might be interesting to be analyzed and possib... 6 May 2008 22:21
C++ language: Cloneable classes On 6 mai, 20:46, Krzysztof Czainski <1czaj...(a)gmail.com> wrote: I don't understand where do I require default-constructible? My bad, I had incorrectly read. Can You perhaps see a way to avoid usage of new? struct Cloneable { virtual std::size_t sizeof_() const = 0; // returns size of object ... 6 May 2008 21:27
Exceptions vs. undefined behaviour Johan Torp ha scritto: IIRC, the standard library avoids throwing exceptions so that users which compile without exception support shall be able to use as much of the standard library as possible. Is this correct, incorrect or are there other motivations? That is not entirely correct. There are several s... 6 May 2008 22:21
Look-up table with anonymous functions Hi all, I'm programming some image convolutions which I want to speed up.When convolving an image (two-dimensional array of integers) with a filter matrix (the same), the center of the filter is placed on every image pixel and the elements on top of each other are multiplied and summed. This implies that a ... 24 Apr 2008 16:39
The reuse of keywords in the C++ standard Posted here because comp.std.c++ seems to have died an unexpected death. ------- I note with some dismay the proposal to create a new meaning for the C and C++ keyword 'auto', as described in the document N1984 (part of the proposals for C++0X or whatever it's called now). Efforts are being taken to ensure... 24 Apr 2008 16:39
Deleting items from an std::list , is this code correct? Hello Group, Please advise. Does this work with all STL implementations? Thank you, Elias [code] #include <iostream> #include <list> typedef std::list<int> int_list_t; typedef std::list<int_list_t::iterator> int_list_iterator_list_t; void print_list(int_list_t &L) { for (int_list_t::iterator it=... 24 Apr 2008 16:39
Mapping Templates function betweeen 2 class Hi, I need to know how to solve this problem of the code , kindly help me if any one know this given 2 classes A and B defined as follows struct A { int a; } struct B { int b; char c; } the requirement is to efficiently write 2 map classes 1. class AMap It should have member fun... 24 Apr 2008 16:39
A TC++PL protected class question While preparing for a c++ interview, I went through TC++PL(3rd edition, 24th) and studied Appendix C, i.e., technicalities. Specifically, I found one of the examples is puzzling to me on page 851, i.e., when a class Y2 is derived from a protected base X class, and another class Z2 is derived from the public base cl... 24 Apr 2008 02:04 |