Commit 21674daa authored by Davis King's avatar Davis King

Added std::boolalpha to the ostringstream so that bool messages

get printed in a nice way.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403213
parent 22b3cc0f
...@@ -75,7 +75,7 @@ namespace dlib ...@@ -75,7 +75,7 @@ namespace dlib
dlib__out << "Error occurred in file " << __FILE__ << ".\n"; \ dlib__out << "Error occurred in file " << __FILE__ << ".\n"; \
dlib__out << "Error occurred in function " << DLIB_FUNCTION_NAME << ".\n\n"; \ dlib__out << "Error occurred in function " << DLIB_FUNCTION_NAME << ".\n\n"; \
dlib__out << "Failing expression was " << #_exp << ".\n"; \ dlib__out << "Failing expression was " << #_exp << ".\n"; \
dlib__out << _message << "\n"; \ dlib__out << std::boolalpha << _message << "\n"; \
throw dlib::fatal_error(dlib::EBROKEN_ASSERT,dlib__out.str()); \ throw dlib::fatal_error(dlib::EBROKEN_ASSERT,dlib__out.str()); \
}} }}
......
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