From 21674daa5ca38ee0cfe652b88ed00a129d886ee9 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 20 Sep 2009 14:33:57 +0000 Subject: [PATCH] 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 --- dlib/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/assert.h b/dlib/assert.h index 2cd8631ea..0facd66e0 100644 --- a/dlib/assert.h +++ b/dlib/assert.h @@ -75,7 +75,7 @@ namespace dlib dlib__out << "Error occurred in file " << __FILE__ << ".\n"; \ dlib__out << "Error occurred in function " << DLIB_FUNCTION_NAME << ".\n\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()); \ }}