mirror of https://github.com/CGAL/cgal
Added work-around for VC8 ICE in crate_offset_polygons_2
This commit is contained in:
parent
b33fb37345
commit
d4ee790bb1
|
|
@ -36,7 +36,7 @@ int main()
|
|||
|
||||
double lOffset = 1 ;
|
||||
|
||||
PolygonPtrVector offset_polygons = CGAL::create_offset_polygons_2(lOffset,*ss);
|
||||
PolygonPtrVector offset_polygons = CGAL::create_offset_polygons_2<Polygon>(lOffset,*ss);
|
||||
|
||||
print_polygons(offset_polygons);
|
||||
|
||||
|
|
|
|||
|
|
@ -189,14 +189,18 @@ create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs, K const& k )
|
|||
return CGAL_SS_i::create_offset_polygons_2<Polygon>(aOffset,aSs,k,same_kernel);
|
||||
}
|
||||
|
||||
template<class Polygon, class FT, class Skeleton>
|
||||
std::vector< boost::shared_ptr<Polygon> >
|
||||
|
||||
template<class FT, class Skeleton, class K>
|
||||
std::vector< boost::shared_ptr< Polygon_2<K> > >
|
||||
inline
|
||||
create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs )
|
||||
create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs, K const& k )
|
||||
{
|
||||
return create_offset_polygons_2(aOffset, aSs, typename Polygon::Traits() ) ;
|
||||
typedef Polygon_2<K> Polygon ;
|
||||
|
||||
return create_offset_polygons_2<Polygon>(aOffset, aSs, k ) ;
|
||||
}
|
||||
|
||||
#if !defined(_MSC_VER) || ( _MSC_VER >= 1500 )
|
||||
template<class FT, class Skeleton>
|
||||
std::vector< boost::shared_ptr< Polygon_2< typename Skeleton::Traits::Kernel > > >
|
||||
inline
|
||||
|
|
@ -204,9 +208,16 @@ create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs )
|
|||
{
|
||||
typedef typename Skeleton::Traits::Kernel K ;
|
||||
|
||||
typedef Polygon_2<K> Polygon ;
|
||||
|
||||
return create_offset_polygons_2<Polygon>(aOffset, aSs, K() ) ;
|
||||
return create_offset_polygons_2(aOffset, aSs, K() ) ;
|
||||
}
|
||||
#endif
|
||||
|
||||
template<class Polygon, class FT, class Skeleton>
|
||||
std::vector< boost::shared_ptr<Polygon> >
|
||||
inline
|
||||
create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs )
|
||||
{
|
||||
return create_offset_polygons_2<Polygon>(aOffset, aSs, typename Polygon::Traits() ) ;
|
||||
}
|
||||
|
||||
template<class FT, class Polygon, class HoleIterator, class OfK, class SsK>
|
||||
|
|
|
|||
Loading…
Reference in New Issue