|
Boost : |
Subject: [boost] MSVC 2010 Compile error for polygon_set_data
From: Praveen Vs (vs.praveen78_at_[hidden])
Date: 2012-02-07 23:32:00
Hi,
Below code gives a compile error in MSVC2010. Any ideas whats the issue?
#include <boost/polygon/polygon.hpp>
namespace gtl = boost::polygon;
using namespace gtl;
using namespace boost::polygon::operators;
using namespace std;
typedef gtl::polygon_set_data<double> CPolygonSet;
static void test_boost_polygons()
{
CPolygonSet polyset1, polyset2, rset;
rset = polyset1 + polyset2;
}
void main()
{
test_boost_polygons();
}
Error:
=====
\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=double,
1> iT=const boost::polygon::point_data<double> *
1>]
1>\boost\polygon\polygon_45_set_data.hpp(1621) : 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=double,
1> cT=stlp_std::vector<boost::polygon::rectangle_data<Unit2>>,
1> pT=boost::polygon::polygon_45_with_holes_data<double>
1>]
1>\boost\polygon\detail/polygon_set_view.hpp(102) : see reference to
function template instantiation 'void
boost::polygon::polygon_45_set_data<Unit>::applyAdaptiveBoolean_<0>(boost::polygon::polygon_45_set_data<Unit>
&,const boost::polygon::polygon_45_set_data<Unit> &) const' being
compiled
1>with
1>[
1> Unit=double
1>]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk