Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-08-20 09:36:02

From: "Tom Howard" <tomhoward_at_[hidden]>
> I'm pretty new to boost and I haven't don't a lot of template
programming. I
> might be completely wrong but replacing
> close_at_tolerance<FPT> pred( tolerance_src );
> with
> template close_at_tolerance<FPT> pred( tolerance_src );
> may solve the problem. I remember coming across a very similar problem
> code I was working on a few months ago and I think this is how I solved
> I might be completely wrong

In this case I'm afraid you are. The 'template' keyword would only be legal
(and helpful) there after a dependent type name followed by '::' :

    FPT::template close_at_tolerance<FPT> pred( tolerance source );

for example.


           David Abrahams * Boost Consulting
dave_at_[hidden] *

Boost list run by bdawes at, gregod at, cpdaniel at, john at