Boost-users Digest, Vol 1107, Issue 3 (fwd)
5 Dec
2006
5 Dec
'06
5:39 p.m.
On Dec 4, 2006, at 6:28 PM, Mark Ruzon wrote:
The documentation for tuple says there are no portability problems with gcc 2.95. I am using 3.2.3 and am getting a syntax error on the line that does the work of this function object:
#include
struct get_0_func { template <typename II> // II models Input Iterator on tuple void operator()(II it) { it->get<0>(); }
try :
void operator()(II it) { it->template get<0>(); }
Not tested, but this is likely the reason. The compiler does not how yo parse < between get and 0, if not told that get is a template.
Jaakko J?rvi
Thank you, Jaakko, this works fine. How do I get the documentation for tuple amended to include this form? Mark
6550
Age (days ago)
6550
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Ruzon