Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-01-09 18:01:08


Patches item #1160158, was opened at 2005-03-09 12:05
Message generated for change (Comment added) made by eric_niebler
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=307586&aid=1160158&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Amir Taaki (genjix)
Assigned to: Eric Niebler (eric_niebler)
Summary: Perl style foreach iterating

Initial Comment:
somewhere in boost, there should be a perl style foreach iterator,
like so
#define ITERATOR(obj) typeof(obj.begin())
#define foreach(v,i) for(ITERATOR(v) i = v.begin() ; i !=
v.end() ; i++)
  
genjix at gmail.com

----------------------------------------------------------------------

>Comment By: Eric Niebler (eric_niebler)
Date: 2006-01-09 15:01

Message:
Logged In: YES
user_id=905418

It's called BOOST_FOREACH, and it's already in Boost CVS.
It'll be part of 1.34 when it comes out, but you can get it
today from the Boost File Vault at
http://boost-consulting.com/vault/index.php?&directory=Algorithms

----------------------------------------------------------------------

Comment By: Duilio J. Protti (dprotti)
Date: 2005-08-01 12:52

Message:
Logged In: YES
user_id=1012656

There is something like that. In fact, there is something
much better, take a look at this article:

http://www.informit.com/articles/article.asp?p=400651

About your submission, it's not a patch, is more like a
feature request, so this is not the correct place to post it.

Regards,
Duilio Protti.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=307586&aid=1160158&group_id=7586

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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