|
Boost : |
Subject: Re: [boost] Simple boost polygon boolean OR doesn't work: help needed
From: Praveen Vs (vs.praveen78_at_[hidden])
Date: 2012-02-08 23:35:23
Thanks for a reply. Here is my compiler log. I have just pasted the
relevant lines:
1>\boost\polygon\polygon_45_set_data.hpp(1458): error C2825: 'iT':
must be a class or namespace when followed by '::'
1> \boost\polygon\polygon_45_set_data.hpp(1524) : see
reference to function template instantiation 'void
boost::polygon::get_error_rects_shell<cT,const
boost::polygon::point_data<T>*>(cT &,cT &,iT,iT)' being compiled
1> with
1> [
1> cT=stlp_std::vector<boost::polygon::rectangle_data<Unit2>>,
1> T=Unit2,
1> iT=const boost::polygon::point_data<Unit2>
1> ]
1> \boost\polygon\polygon_45_set_data.hpp(1731) : see
reference to function template instantiation 'void
boost::polygon::get_error_rects<stlp_std::vector<_Tp>,boost::polygon::polygon_45_with_holes_data<T>>(cT
&,cT &,const pT &)' being compiled
1> with
1> [
1> _Tp=boost::polygon::rectangle_data<Unit2>,
1> T=Unit2,
1> cT=stlp_std::vector<boost::polygon::rectangle_data<Unit2>>,
1> pT=boost::polygon::polygon_45_with_holes_data<Unit2>
1> ]
On Thu, Feb 9, 2012 at 9:42 AM, Simonson, Lucanus J
<lucanus.j.simonson_at_[hidden]> wrote:
> Praveen Vs wrote:
>> Changing to int doesn't work either. MSVC2010 throws a bunch of compilation errors. Do you use any special compiler flags? or Boost macros?
>
> Hmm, my tests compile in VC8,9 and 10 for the release branch according to the boost regression tests.
>
> http://www.boost.org/development/tests/release/developer/polygon.html
>
> I generally don't have to do anything special to compile with MSVC (now that I worked around all the compiler bugs for the older versions).
>
> Your code looks very straightforward, and I can't see why it should fail. The operator is exercised in the regression test, so it ought to compile for you. If you send me the compilation errors off list I can read them and tell you what they tell me.
>
> Thanks,
> Luke
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- -praveen
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk