|
Boost : |
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-03-16 13:37:33
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 16 March 2007 13:32 pm, Braddock Gaskill wrote:
> On Fri, 16 Mar 2007 12:11:38 -0400, Frank Mori Hess wrote:
> > On Friday 16 March 2007 11:05 am, Braddock Gaskill wrote:
> >> One thing I did not do (yet) was add a generic conversion function
> >
> > 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));
>
> Hrm, this has profound implications. I don't know if they are good or
> bad, but they go beyond my current understanding of the future idiom.
It could be implemented as a free function instead of a constructor, to
give it a little conceptual separation from the future class proper.
- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFF+tXe5vihyNWuA4URAquWAJ0XSmoFXp8yOGZ0a/sKqEm+GYuAGQCfQ0Pn
U3ykKs8ndzvzYX0R3m5Zxsc=
=ifdb
-----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