
29 Feb
2012
29 Feb
'12
10:29 p.m.
On Wed, Feb 29, 2012 at 12:36:04PM -0800, mark pashley wrote:
void operator()( const iter_value_type& iter_value ) { using namespace std; // without this the next line does not compile! typename T::first_type val = iter_value.get<0>().first ; } };
error: expected primary-expression before ‘)’ token
I believe you need to say: iter_value.template get<0>().first The use of 'template' there is akin to the use of 'typename' when it comes to types. The parse otherwise is iter_value.get < 0 > ().first which explains your error rather directly. Without the 'template' keyword, it's interpreted as a member with some less-than and greater-than comparisons. -- Lars Viklund | zao@acc.umu.se