After the latest update of ubuntu 14.04, I was able to log in to my account, but desktop refresh was extremely slow and toolbars were noisy. Continue reading
-
Recent Posts
Recent Comments
Archives
Categories
After the latest update of ubuntu 14.04, I was able to log in to my account, but desktop refresh was extremely slow and toolbars were noisy. Continue reading
Recently, I wanted to construct quickly a constant vector being the result of the concatenation of two other vectors using a one liner code, and if possible, without rewriting the concatenation by myself. I am a very very very lazy programmer.
Later, I found the following code:
1 2 3 4 5 6 |
auto p = map.find(key); if (p != map.end()) { throw std::runtime_error(...); } prepare(value); map[key] = value; |
This is unfortunate, but I regularly still see the following piece of code:
1 2 3 4 5 |
auto p = map.find(key); // (1) if (p != map.end()) { throw std::runtime_error(...); } map[key] = value; // (2) |
My colleague told me that boost::optional suffers from missing the ability of building an optional of a member from an optional of its parent object. Continue reading
Insatisfait par les firmware de mon routeur netgear, j’ai décidé d’installer une alternative open source. Continue reading
C++11 introduces the interesting std::tuple feature.
Here, I will present the usage of std::tie to implement comparison operators in a class.
The C++11 standard added unique_ptr which goal is to replace and correct the weaknesses of the deprecated auto_ptr.
This post will focus on the memory payload of the unique_ptr with a custom deleter.