Archive for December 2008

Writing generic functors

Hi all,
Maybe you already know this trick… Maybe not.
Maybe one day, you would have liked to write a functor with a total genericity…
Let’s say you have this functor.

?View Code CPP1
2
3
4
5
6
7
struct Printer
{
void operator() (const MyClass& obj)
{
std::cout << obj.toString() << endl;
[...]


Some news from Marseille

Hi,
I’ve moved, 4 weeks ago, in my new home. a 27m² apartment, with my fiancée. We had some problems about our internet/phone/TV stuffs… which, after some phone calls, brought us a free internet/phone/TV month !
But I currently haven’t any PC nor internet at home… After X’mas that should be okay.
I’m still reading news from C++ [...]