|
Boost : |
From: Steven Watanabe (steven_at_[hidden])
Date: 2007-12-03 16:45:10
AMDG
Alexander Nasonov <alnsn <at> yandex.ru> writes:
>
> Steven Watanabe <steven <at> providere-consulting.com> writes:
>
> > #define BOOST_LOCAL_FUNCTION_DECLARE_ARGS() \
> > conditional_declare<sizeof(is_declared(local_function_bound_args)) == \
> > sizeof(no)>::apply<0> local_function_bound_args
>
> Does it work when a bound argument depends on a template parameter???
>
> The syntax in this case is
> *template* conditional_declare<...>::apply<0> local_function_bound_args;
>
> which doesn't compile when *apply* is not a template.
You are correct, it wouldn't work if conditional_declare<...>
is a dependent type. However, void* is sufficient so it
should be okay.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk