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
in
> code I was working on a few months ago and I think this is how I solved
it.
> 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.

-Dave

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk