Tobias Schwinger wrote:

> Here's an MPL-based solution.
Whoa! Thanks a lot!

> compiles with GCC4
For me it also works with VS2003
 
Right now I'm still scratching my head in astonishment ;)
I'll definitely come back looking for some more help to understand your solution.

Thanks again.