Re: [Boost-users] [boost users][tuple] foreach with tuple
4 Aug
2009
4 Aug
'09
8:17 a.m.
On Tue 04/08/09 09:02 , Matthieu Brucher
Hi,
Try with: foreach ((boost::tuple
& i_pair), l_listLeftLines) The issue is that < and > are not delimiters for the macro, so you have actually 3 parameters if you don't add the parenthesis.
From memory the extra parentheses solution isn't good enough either. You have to go with one of the workarounds described in the "pitfalls" section of the documentation:
http://www.boost.org/doc/libs/1_39_0/doc/html/foreach/pitfalls.html Pete
5581
Age (days ago)
5581
Last active (days ago)
0 comments
1 participants
participants (1)
-
pete@pcbartlett.com