Boost logo

Boost Users :

From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2004-12-26 07:46:33


Aleksey,

> > int main()
> > {
> > typedef void (*FType) ();
> ^
>
> Should be
>
> typedef void (FType) ();

Aha! I tested it and it was fine. :)

> > typedef
> > typename
> > boost::function_traits<FType>
> > ::result_type return_type;
> >
> > cin.get();
> > return 0;
> > }
> ...
> > Is he right? Is there anything particular I should
> had
> > done, and I've not?
>
> 'function_traits' requires you to pass a _function
> type_,
> which is a different beast from a pointer to a
> function.

I see. You know for sure that we C/C++ programmers are
"used to" work with function pointer (types), as this
is how we pass them around, if any! (Excluding
Functors, I mean.)

Very nice answer indeed.

Bunches of Thanks,
Mery Chistmas,
--Hossein

                
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net