Description:
Technical discussion of the C++ language. (Moderated)
|
|
|
Will we ever be able to throw from a destructor?
|
| |
Hi,
There is always a big discussion about exceptions and when and where they can be thrown.
In Exceptional C++ by Herb Sutter, p.55, he states why throwing from destructors is a bad thing. Apparently for a lot of people in the community (including myself) it has been difficult to be convinced that the bad thing with throwing from a destructor is more than just an unsolved technical detail.... more »
|
|
Template instantiation: Why is this method instantiated?
|
| |
(Note: Only the introduction is linux specific.)
On Linux there are two functions called strerror_r. One can choose between those function using appropriate preprocessor flags. The problem is that the functions have different return types which is why I tried to wrap the handling code in another C++ function. I wanted to hide the... more »
|
|
Available C++ Libraries FAQ
|
| |
Available C++ Libraries FAQ
URL: [link]
This is a searchable list of libraries and utilities (both free
and commercial) available to C++ programmers.
If you know of a library which is not in the list, why not fill
in the form at [link]... more »
|
|
program launcher API for C++?
|
| |
Hello,
Does anyone know of a program launching API in C++? I don't mean
system() or fork(), I mean something that acts as a service, i.e. is
launched by an external launcher that a client program talks to.
I have just discovered that according to POSIX, fork and mult-
threading are not safe to be used together. On MIPS where I am using... more »
|
|
C++11 Books coming?
|
| |
C++11 is out, and even available at an affordable price (though I can
read it at work even cheaper). But what I think we all mainly want is
compilers that support it and books and similar resources that enable
us to use it. I want at least some of the latter before I need the
former. While useful as a reference, the standard is not how to learn... more »
|
|
std::vector: Surprising order of destruction!
|
| |
Hello,
I am curious is there any C++ standard rules about destruction of
std::vector elements. For arrays it applies “reverse order” rule –
order of destruction is reverse to elements construction – and it is
in reverse order of indexes.
It seems, that, for at least one compiler which I tested, the order of... more »
|
|
ANN: FRUCTOSE 1.2.0 has been released
|
| |
{ Reformatted; please limit your lines to 70 characters -mod }
This is to announce release 1.2.0 of FRUCTOSE, a C++ unit test
framework. It is very cut down compared to CppUnit and is designed for
simple command line-driven test harnesses. It is implemented entirely
in header files. Try it out at [link].... more »
|
|
fighting with move sematics and std::tuple
|
| |
Hi,
i am working on an exercise for move sematics and want to create a
'FunctionTracker', which logs enter/exit message for functions and
their input/output variables.
It works. But it uses some copying, which i want to shake off (if
possible).
Here's the FunctionTracker.h source file (i use gcc 4.7.0, ubuntu... more »
|
|
copying boost::exception across threads crashing
|
| |
Below sample code to copy/transfer boost::exception object from 1
thread to another crashes due to a race condition during destruction
of exception/exception_ptr internal state. I am not sure what is the
best way to resolve it.
The boost version used was 1.42 and platform is Ubuntu lucid running... more »
|
|
|