Posted by: rmn on: 28/12/2009
Are you familiar with the new, all-mighty, arrow “–>” operator in C++ ?
Posted by: rmn on: 25/12/2009
The future standard extension (some of it is described in the Technical Report on C++ Standard Library Extensions – TR1) is going to include many libraries already contained within boost. One such library is boost’s Smart Pointers. In this post I would like to show an interesting use-case of the smart_ptr class, through what I [...]
Posted by: rmn on: 14/12/2009
I know I’m a little late, but I’ve only recently discovered the interesting site of projecteuler.net. For anybody not familiar with it, Project Euler is a site offering a vast collection of programming puzzles of mathematical nature for anybody to solve. It has a ranking system for its members, allowing every member to see others’ [...]
Posted by: rmn on: 04/12/2009
boost::optional is a very handy generalization of returning a null when there’s nothing to return. Consider a function such as strstr – either the required sub-string is found within the given string, in which case a pointer to it is returned, or a NULL value is returned to indicate that there was no such sub-string. [...]
Posted by: rmn on: 01/12/2009
If you ever try to define a public custom operator new while keeping the corresponding delete operator private, you’ll end up unable to compile any code that actually invokes the public operator new. The reasoning is quite interesting.
Recent comments