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

>
>> GCC thinks it's illegal.
>
> Which part?  

Sorry, I miswrote.    It fails to match the template:

template<class> struct test;

template<class R, class C> struct test<R C::*> {
    typedef R type;
};

struct X { };


int main()
{
    test< void (X::*)(int) >::type // what type is this?
        ints;
}

foo.cpp:13: incomplete type `test<void (X::*)(int)>' does not have member `type

-- 
                       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