Boost logo

Boost Users :

From: BoschianPest, Stefano (stefano.boschianpest_at_[hidden])
Date: 2005-03-23 04:50:18


Hi everybody.
Is there a way to call a function of n arguments of type T as a function of
vector<T>?

In code:
I have defined the function:

void my_function(int dummy, T a_1, T a_2, ... T a_n) {...}

Now I would like to call the function with a pointer ptr

void (*ptr) (int, std::vector<T>)

(or with a boost::function ptr).

Regards

Stefano

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Banca Caboto s.p.a. London Branch. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. Banca Caboto s.p.a. London Branch is regulated by the Financial Services Authority for the conduct of designated investment business in the UK. If you received this email in error, please immediately notify postmaster_at_[hidden]


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