First  |  Prev |  Next  |  Last
Pages: 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
Safely redirecting std::cout?
Hi all. Section 13.10.3 of the Josuttis book on the STL contains a basic recipe on how to redirect output written to std::cout to some other stream. However, the section contains a cautionary remark that std::cout should be restored to its initial state before program termination. Is there a standard way to ... 19 Jun 2008 01:15
considerations regarding active issue #711 (contradiction in empty shared_ptr)
Greg Herlihy ha scritto: It boils down to what really is a smart pointer. One fundamental concept is that it manage the pointer life time, be it directly or indirectly through another smart pointer (the aliasing case). For me the empty/non-null case just doesn't fit in this concept, as being empty i... 19 Jun 2008 01:15
Are so many subclasses such a good idea?
On 13 Jun, 12:06, Chris Uzdavinis <cuz...(a)gmail.com> wrote: However, it is not entirely clear what you mean by adding a "method" instead. Are you suggesting that you have one type of object that you always throw, and you edit its source code whenever a new error situation arises? I hope not! Using classe... 19 Jun 2008 01:15
Local Variable
Hi All, I am facing a strange problem.. I am calling a function func2 from func1. Before calling func2 all the local variables in func1 looks fine and has their respective values. When function returns back from func2 to func1 all the local variables in func1 has values 0xfdfdfd. Can somebody please expl... 19 Jun 2008 01:15
How Type-Safe is C++?
Gabriel Dos Reis wrote: Please produce a C++ program that conforms to the type system (both static and dynamic parts are satisfied) and yet crashes. It can't be done, however note that it also can't be done in a language that formally defines *all* syntax at "undefined behavior", so I don't see how such an... 22 Jun 2008 15:16
Operator Overloading: new and new[] operators
Hi! Alf P. Steinbach schrieb: There are those, yes. Plus operator delete with size argument (the compiler very gratiously tells you how many bytes to deallocate, at least how much it thinks it should be, based on static type of object to delete). Which delete will be invoked? Is the delete with t... 24 Jun 2008 02:04
Programming on Linux vs Windows
Mathias Gaunard wrote: On 15 juin, 10:54, Phil Hobbs <pcdhSpamMeSensel...(a)electrooptical.net> wrote: gcc is a little stricter than MS as far as enforcing some scoping rules, and generally produces better error messages. MS C++ probably produces slightly better code (at least it does for my purpos... 21 Jun 2008 07:39
unicode and std::exception
I want to use unicode in my program, that is, wchar_t but not char. When I have to throw some exception, I have to convert the wchar_t to char and then use std exception classes. so, why the std exception are not template designed, just like basic_string or iostream? -- [ See http://www.gotw.ca/resource... 19 Jun 2008 01:15
Metaprogramming: Tool or toy? Case study: A law based test automaton
Thank you all for your valuable comments and suggestions. Removing virtual functions using the curiously recurring template pattern as suggested by Giovanni P. Deretta reduced code size by about 20% but had no effect on compilation times. (Thank you for that! Since I have not had much experience with the patte... 19 Jun 2008 01:15
Adapting code for C++98 compliance.
I'm a very competent and experienced C programmer, with a pretty good understanding of C++98. I haven't kept up very well on the changes that have been made since C++98, but for the code I'm talking about, C++98 is the relevant standard. I used to participate frequently in comp.std.c++, (literally thousands of post... 7 May 2008 12:35
First  |  Prev |  Next  |  Last
Pages: 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55