Skip to content

Commit

Permalink
Made the requires checking for array::set_size() always stay on since…
Browse files Browse the repository at this point in the history
… it is not

going to be performance critical and is a common user error.
  • Loading branch information
davisking committed May 22, 2014
1 parent eec39b4 commit e314061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlib/array/array_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(( size <= this->max_size() ),
DLIB_CASSERT(( size <= this->max_size() ),
"\tvoid array::set_size"
<< "\n\tsize must be <= max_size()"
<< "\n\tsize: " << size
Expand Down

0 comments on commit e314061

Please sign in to comment.