Boost logo

Geometry :

Subject: [ggl] Problem intersecting linestring & polygon in Xcode 3.2.2
From: Mateusz Loskot (mateusz)
Date: 2010-04-09 16:40:02


Scott K Warren wrote:
> Bruno,
>
> Thanks for the quick response. This change does fix the "invalid
> initialization of non-const reference" error.

Scott,

The same problem occurred with GCC 4.4.1 on Linux, so I have
applied this fix to the SVN. Here is log:

https://svn.boost.org/trac/boost/changeset/61167

I also updated example/Jamfile.v2 and added the
05_b_overlay_linestring_polygon_example.cpp example,
so now it's possible to build it with bjam.

> However, I still get the same "apply is not a member of get_turns" error
> as before.

Hmm, interesting.
Could you try to build this example again? I'd expect it compiles without
any problem. I compile it successfully using GCC 4.4.1 in Linux:

$ cd /path/to/libs/geometry/example
$ bjam 05_b_overlay_linestring_polygon_example
...patience...
...found 243 targets...
...updating 4 targets...
common.mkdir bin/gcc-4.4.1
common.mkdir bin/gcc-4.4.1/debug
gcc.compile.c++ bin/gcc-4.4.1/debug/05_b_overlay_linestring_polygon_example.o
gcc.link bin/gcc-4.4.1/debug/05_b_overlay_linestring_polygon_example
...updated 4 targets...

Best regards,

-- 
Mateusz Loskot
http://mateusz.loskot.net

Geometry list run by mateusz at loskot.net