Boost logo

Boost :

From: Philippe A. Bouchard (philippe_at_[hidden])
Date: 2003-08-06 12:10:07


Douglas Gregor wrote:

[...]

> You can always write a forwarding 'foo' that checks the argument
> types, but
> I understand the reason you'd like this feature. My only question is
> whether it is worth the additional machinery that it would take,
> e.g., would this help a large amount of code? Perhaps you have a
> particular "real world" use in mind? I can't think of one, and
> there's a bit of code in the paper that uses the template varargs
> stuff but didn't need it.

I think some people where interested to use a list of char also, a
compile-time string:

template <... char A>
    void foo()
    {
    }

foo<'f', 'a', 's', 't', ' ', 's' , 't' , 'r' , 'i' , 'n', 'g'>();

[...]

Philippe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk