[Clam-devel] Re: [Acustica-Bm] boost & clam

David García Garzón dgarcia at iua.upf.edu
Mon May 11 14:54:37 PDT 2009


Let's move this discussion to the clam-devel list. Hope you are already 
subscribed, Dirk.

On Monday 11 May 2009 15:17:39 dirk at code-shop.com wrote:
> Small question,
>
> I see a lot of:
>
> for (std::list<ProcessingAndGeometry>::const_iterator
> it=sourcesAndGeometries.begin(); it!=sourcesAndGeometries.end();it++)
> {
>
> which is quite verbose (and it ought to ++i when incrementing iterators)
>
> boost has a macro BOOST_FOREACH to hide this:
>
>     std::string hello( "Hello, world!" );
>
>     BOOST_FOREACH( char ch, hello )
>     {
>         std::cout << ch;
>     }
>
> Would it be possible to add bits and pieces of boost to clam? (Taking
> care not to introduce a lot of dependancies off course)
>
> Same goes for the smart pointer and more small utilities ...
>
> Dirk
>





More information about the clam-devel mailing list