fix for clang: assertions do not work on intrusive_ptr

This commit is contained in:
Andreas Fabri 2013-09-25 13:02:28 +02:00
parent 9ed4f837c3
commit e96dd75d15
2 changed files with 2 additions and 2 deletions

View File

@ -452,7 +452,7 @@ struct SS_converter : Converter
Target_trisegment_2_ptr cvt_single_trisegment( Source_trisegment_2_ptr const& tri ) const Target_trisegment_2_ptr cvt_single_trisegment( Source_trisegment_2_ptr const& tri ) const
{ {
CGAL_precondition( tri ) ; CGAL_precondition( tri!= Source_trisegment_2_ptr() ) ;
return Target_trisegment_2_ptr ( new Target_trisegment_2(cvt_s(tri->e0()) return Target_trisegment_2_ptr ( new Target_trisegment_2(cvt_s(tri->e0())
,cvt_s(tri->e1()) ,cvt_s(tri->e1())

View File

@ -355,7 +355,7 @@ private :
CGAL_STSKEL_BUILDER_TRACE(5,"Trisegment for " << aTriedge << ":" << r ) ; CGAL_STSKEL_BUILDER_TRACE(5,"Trisegment for " << aTriedge << ":" << r ) ;
CGAL_postcondition_msg(r, "Unable to determine edges collinearity"); CGAL_postcondition_msg((r!= Trisegment_2_ptr()), "Unable to determine edges collinearity");
return r ; return r ;
} }