|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-10-17 14:40:25
Terry G wrote:
> I've just finished reading C++ Template Metaprogramming again.
> I just don't get it.
>
> Why would someone use a type container?
Imagine a case where for some reason you would like to call
register<X, Y>();
for all combinations of X1..Xm and Y1..Yn. Writing the calls by hand gets
tedious. If you put Xi and Yi in type sequences, you can write a metaprogram
that generates the calls.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net