Boost logo

Boost :

Subject: Re: [boost] [GGL] Can't seem to use equals on multi_polygons
From: Kef Schecter (furrykef_at_[hidden])
Date: 2010-01-21 08:47:48


> When I try to use equals() on multi_polygons, the compiler blows up,
> giving a template error. I've tried this in CodeWarrior and MSVC. Using
> equals() on two polygon_2d's works fine, but it doesn't like it when I
> use multi_polygons. Is equals() for multi_polygons not implemented, or
> am I just missing something?

Sorry, where are my manners? The file I had attached had much more than
was necessary to demonstrate the problem. Here, this is a trivial one:

#include <iostream>
#include <ggl/ggl.hpp>
#include <ggl/geometries/cartesian2d.hpp>
#include <ggl/multi/geometries/multi_polygon.hpp>

int main()
{
     ggl::multi_polygon<ggl::polygon_2d> mp1, mp2;
     std::cout << "mp1 equals mp2?"
               << (ggl::equals(mp1, mp2) ? "YES" : "NO")
               << std::endl;
     return 0;
}


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