Commit e314061e authored by Davis King's avatar Davis King

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.
parent eec39b4d
...@@ -364,7 +364,7 @@ namespace dlib ...@@ -364,7 +364,7 @@ namespace dlib
) )
{ {
// make sure requires clause is not broken // make sure requires clause is not broken
DLIB_ASSERT(( size <= this->max_size() ), DLIB_CASSERT(( size <= this->max_size() ),
"\tvoid array::set_size" "\tvoid array::set_size"
<< "\n\tsize must be <= max_size()" << "\n\tsize must be <= max_size()"
<< "\n\tsize: " << size << "\n\tsize: " << size
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment