Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] Variant call forwarding?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-23 12:59:44


> To be able to choose one of them at runtime :-) ... I'm looking for something similar to boost::function<>, but which doesn't erase all type information.

Lets assume you've got 2 different functions with the same signature:
void f1(int i, double d);
void f2(int i, double d);

What do you loose by putting them into boost::function<void(int, double)>?


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