"Paul Mensonides" <[EMAIL PROTECTED]> writes:

> I didn't know that this was legal:
>
> template<class T> struct identity {
>     typedef T type;
> };
>
> template<class T> void func(const T&, typename identity<T>::type* = 0);
>
> int main() {
>     func(10);
>     return 0;
> }

Sure, T is deducible due to the first argument.

-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to