Boost logo

Boost :

Subject: Re: [boost] [Polygon] "Ambiguous use of partial specialization" in CodeWarrior
From: Kef Schecter (furrykef_at_[hidden])
Date: 2010-01-08 13:49:47


On 1/8/2010 9:32 AM, Thomas Klimpel wrote:
> Well, in that case you could try to add
>
> template<typename T>
> struct polygon_traits<T, gtl_no> {};
>
>
> to the file polygon_traits.hpp below the lines 39ff
>
> template<typename T, typename enable = gtl_yes>
> struct polygon_traits {};
>
> so that it looks similar to the definition of rectangle_traits...

It doesn't help, I'm afraid. I get exactly the same errors -- no more,
no less.

> You could also try to compile the examples from the documentation,
> so that it would be clear that it is actually a problem of the
> library/compiler combination and not with your code itself.

The problem occurs even in a .cpp file that does nothing but include
polygon.hpp, so it can't be my code. Thanks, though.

- Kef


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