Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-12-10 21:44:26


Sohail Somani wrote:
> Warning: MPL noob, still waiting for my book to arrive
>
> I'm reading the fusion library's documentation that was in the zip file
> for the announcement. If this is outdated, please ignore this email.

It is outdated. It's been fixed in the CVS.

> for_each(filter_if<boost::is_pointer<Sequence> >(seq), print_xml());

Doc typo.

> typedef mpl::lambda<boost::is_pointer<_1> >::type is_pointer;
> fusion::for_each(fusion::filter_if<is_pointer>(seq), print_xml());

Better yet (see docs in CVS):

     for_each(filter_if<boost::is_pointer<_> >(seq), print_xml());

HTH.

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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