Welcome to the world of template metaprogramming. If you are a C++ developer and have not yet explored template metaprogramming, this is a good place to start off.
I will dig through STL and Boost to identify how template metaprogramming has been put to good use. Also, I will post some of my code snippets to learn how template metaprogramming can be used to do some really cool tricks at compile time. All my code snippets are experiments, so do your homework before using this in your production code. I will use gcc in most of my experiments, so make sure your compiler supports it.
Having said all that, let's start digging...
How does boost::bind work?
Why std::distance and std::advance?
How do type_traits work?