Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-03-16 12:11:38


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 16 March 2007 11:05 am, Braddock Gaskill wrote:
> One thing I did not do (yet) was add a generic conversion function
> capability. This is easily done now (in fact I did a rough cut and then
> removed it). I was hoping to get at least one real-life example usage of
> how it is used - say exactly how the syntax of a future<vector<T> > to
> future<T> conversion might work, as you had mentioned?

Here's an example extracting at(1) from a future vector:

poet::future<std::vector<double> > myVec;
poet::future<double> myVecElement(myVec, boost::bind<const
double&>(&std::vector<double>::at, _1, 1));

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF+sG75vihyNWuA4URAohrAJ4oXDjjZW3G6lQyh1EtYXHF0n7+kgCfZHqs
QkQyMJCkmtnEsAA0WfZbNfY=
=nkmB
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk