mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Improved assert error message.
This commit is contained in:
parent
998853562e
commit
854801d4b4
@ -195,7 +195,10 @@ namespace dlib
|
||||
double f_x2
|
||||
)
|
||||
{
|
||||
DLIB_ASSERT(0 < x1 && x1 < x2,"Invalid inputs were given to this function");
|
||||
DLIB_ASSERT(0 < x1 && x1 < x2,"Invalid inputs were given to this function.\n"
|
||||
<< "x1: " << x1
|
||||
<< " x2: " << x2
|
||||
);
|
||||
// The contents of this function follow the equations described on page 58 of the
|
||||
// book Numerical Optimization by Nocedal and Wright, second edition.
|
||||
matrix<double,2,2> m;
|
||||
|
Loading…
Reference in New Issue
Block a user