mirror of https://github.com/davisking/dlib.git
Made the requires checking for array::set_size() always stay on since it is not
going to be performance critical and is a common user error.
This commit is contained in:
parent
eec39b4d0e
commit
e314061e82
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue