Use Boost enable_if to handle ambiguous function overload return types

Boost Logo

The title is not really clear but I didn’t found a better one. The example will be clearer (I hope). In EDDI, I had this little function : For the record, this function is only invoking a specific operator of a visitor. The problem was that I wanted this function to handle also non-void visitors. [...]



C++ Templates : The Complete Guide – Book Review

C++ Template Book

After the Effective C++ Serie, I read C++ Templates: The Complete Guide, from David Vandevoorde and Nicolai M. Josuttis The templates are one of the most powerful feature of C++. However, this is a complex technique that is often misused or misunderstood. This book will help you learning what exactly are templates and how they [...]



Boost 1.48.0 has been released

Boost Logo

A new version of Boost is available : Boost 1.48.0 This release includes three new libraries : Locale, Container and Move. A lot of bug have been fixed and there are also some changes in the existing libraries.



eddic 0.5.1 : Better assembly generation and faster parsing

I’m very pleased to release the version 0.5.1 of the EDDI Compiler. It makes now a long time since the last version of eddic, but I started again working frequently on it. This version doesn’t add any new feature to the language, but there are a lot of improvements in the compiler itself. First of [...]



Effective STL Book Review

Cover

I finished reading the last Effective C++ volume : Effective STL, Scott Meyers. Again, this book follows the same model as the two others, providing several rules aiming at making you a better (more effective) STL programmer. All the items of this book are centered on the usage of the Standard Template Library (STL). The [...]



Write and read binary files in C++

C++ Logo

To write the EDDI compiler, I had to write and read binary files. Writing text files is really easy in C++, directly using the < < operator on the stream, but writing binary is a little harder and, I must say, a lot less elegant. First, to write to a binary file, we have to [...]