|
Boost : |
From: Itay (itay_maman_at_[hidden])
Date: 2002-07-19 17:17:26
AFAIK, The closest thing MSVC has to offer, is argument deduction for
template functions, which is not useful for Boost.Function.
-Itay
"Douglas Gregor" <gregod_at_[hidden]> wrote in message
news:200207191603.25139.gregod_at_cs.rpi.edu...
> To get the new Boost.Function syntax working on MSVC, I need to be able to
> extract the return an argument types from a function type. With partial
> specialization, this is trivial:
>
> template<typename Signature>
> struct function_traits;
>
> template<typename R, typename T1>
> struct function_traits<R (T1)>
> {
> typedef R result_type;
> typedef T1 arg1_type;
> };
>
> // lots more partial specializations
>
> Can anyone think of a way to do this without partial specialization? My
> instinct tells me that only typeof would do it, and MSVC doesn't seem to
have
> typeof, so does anyone else have any magical ideas? (Please?)
>
> Doug
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk