mirror of https://github.com/CGAL/cgal
Use assertion_code()
This commit is contained in:
parent
4f33354ace
commit
3b519819b4
|
|
@ -91,7 +91,7 @@ template<class NT_,class Dim_,class Max_dim_=Dim_> struct Array_vector {
|
|||
|
||||
struct Iterator_and_last {
|
||||
template<typename Iter,typename T>
|
||||
Vector operator()(unsigned d,Iter const& f,Iter const& e,CGAL_FORWARDABLE(T) t) const {
|
||||
Vector operator()(unsigned CGAL_assertion_code(d),Iter const& f,Iter const& e,CGAL_FORWARDABLE(T) t) const {
|
||||
CGAL_assertion(d==std::distance(f,e)+1);
|
||||
CGAL_assertion(d<=d_);
|
||||
//TODO: optimize for forward iterators
|
||||
|
|
|
|||
Loading…
Reference in New Issue