[sigc] An "adaptor_type" cart-before-the-horse error in libsigc++-2.0



Martin,

I've found another problem. In the following header files:
adaptors/bind.h
adaptors/compose.h
adaptors/hide.h
adaptors/exception_catch.h

all occurrences of this typedef

typedef typename adapts<T_functor>::adaptor_type adaptor_type;

comes after its actual use, e.g

struct bind_functor <0, T_bound, T_functor> : public adapts<T_functor>
{
 ...
 struct deduce_result_type<T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6, void>
{ typedef typename adaptor_type::deduce_result_type<typename type_trait<T_arg1>::pass,typename type_trait<T_arg2>::pass,typename type_trait<T_arg3>::pass,typename type_trait<T_arg4>::pass,typename type_trait<T_arg5>::pass,typename type_trait<T_arg6>::pass, typename type_trait<T_bound>::pass>::type type; };
 typedef typename adaptor_type::result_type  result_type;
 typedef typename adapts<T_functor>::adaptor_type adaptor_type;
...
};

I can do a patch if you want.
Regards,

Jeff.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]