
12 Feb
2008
12 Feb
'08
10:28 p.m.
On Feb 12, 2008 3:08 PM, e r
Hi,
I have the following:
template<typename T> class A: public std::unary_function
&, void>{ public: typedef typename std::unary_function &, void> parent_type; typedef typename parent_type::argument_type argument_type; void operator()(argument_type t)const{ t.get<0>(); //error: expected primary-expression before ')' token t.get<1>(); //error: expected primary-expression before ')' token }; };
Similar code without the template (i.e. fix say T = double) works fine.
I'm taking a wild guess here not knowing what you're running this on (and I really haven't looked into your code much), but try: t.template get<0>(); t.template get<1>(); Was that it? Stjepan