[fusion] How to transform types of fusion::map ?
A very concrete question:
I have map
Hi Zeljko,
On Wed, Sep 17, 2008 at 8:25 AM, Zeljko Vrba
A very concrete question:
I have map
, pair , ..> as input. How do I produce map , pair on output?
Take a look at `transform` (algorithm/transformation/transform in the
docs), I think that should work for you. If you are only interested
in transforming the type, mpl::transform might work better (fusion's
transform is lazy, so to get the map type out you'd also need
`result_of::as_map` (container/conversion/metafunctions in the docs)).
If you want to use mpl's transform on a fusion map, #include
- what is the purpose of for_each metafunction when the docs say that it always returns void? (and no side-effects are possible at compile-time)
fusion is not just compile-time - the types are compile time but the values are run-time. Regardless, the function invoked by for_each can have side-effects (there is also an mpl for_each which is useful). Best, Stjepan
On Wed, Sep 17, 2008 at 10:10:41AM +0200, Stjepan Rajko wrote:
Take a look at `transform` (algorithm/transformation/transform in the
For anyone else who might be interested, transform_view seems to do the trick:
// Metafunction to convert from T=pair
Sorry to interrupt all, I am a newer for python/boost.python from c++, I want to use boost.python to extend python in Windows/VS2008, and I have download a installer and instal it from: http://www.boostpro.com/products/free I see some pages on the net that they say boost.python should be compile first before use, Now I have a question, Do i need to compile boost.python after I instal the installer? (from the installer, I think I don't need to compile it again ) If you can help me, just reply to me Separately or tell me through my MSN: way418@hotmail.com Thank you for all. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
on Wed Sep 17 2008, "Liu yang"
Sorry to interrupt all,
I am a newer for python/boost.python from c++, I want to use boost.python to extend python in Windows/VS2008, and I have download a installer and instal it from: http://www.boostpro.com/products/free
I see some pages on the net that they say boost.python should be compile first before use, Now I have a question, Do i need to compile boost.python after I instal the installer? (from the installer, I think I don't need to compile it again )
You do not need to rebuild the boost.python library binaries unless you need to use build options that are incompatible with the binaries provided by the installer -- Dave Abrahams BoostPro Computing http://www.boostpro.com
participants (4)
-
David Abrahams
-
Liu yang
-
Stjepan Rajko
-
Zeljko Vrba