Commit a8f9f2ea authored by Davis King's avatar Davis King

Improved the message generated by an assert.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403582
parent 80d30d49
...@@ -1563,7 +1563,11 @@ namespace dlib ...@@ -1563,7 +1563,11 @@ namespace dlib
DLIB_CASSERT(r < m->nr() && c < m->nc(), DLIB_CASSERT(r < m->nr() && c < m->nc(),
"You have used the matrix comma based assignment incorrectly by attempting to\n" << "You have used the matrix comma based assignment incorrectly by attempting to\n" <<
"supply more values than there are elements in the matrix object being assigned to.\n\n" << "supply more values than there are elements in the matrix object being assigned to.\n\n" <<
"Did you forget to call set_size()?\n"); "Did you forget to call set_size()?"
<< "\n\t r: " << r
<< "\n\t c: " << c
<< "\n\t m->nr(): " << m->nr()
<< "\n\t m->nc(): " << m->nc());
(*m)(r,c) = val; (*m)(r,c) = val;
next(); next();
has_been_used = true; has_been_used = true;
......
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