fix(debug): remove typeid information from assertion, the names are mangled and are not very useful

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-10-23 16:41:51 -07:00
parent 434c33f225
commit 449454efdb

View file

@ -108,7 +108,8 @@ public:
};
namespace debug {
template<typename T> void display_var(char const * name, T const & value) {
std::cerr << name << " : " << typeid(value).name() << " := "
// commented typeid(value).name() since the name is mangled
std::cerr << name << /* " : " << typeid(value).name() << */ " := "
<< std::boolalpha << value << std::noboolalpha
<< std::endl; }
}