From: Christian Bauer Date: Wed, 22 Jan 2003 20:07:30 +0000 (+0000) Subject: synced to 1.1 X-Git-Tag: release_1-0-13~4 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=9d2ba6504125b9c7f0ec8f547ee39a96c6e3806d;ds=sidebyside synced to 1.1 --- diff --git a/ginac/idx.cpp b/ginac/idx.cpp index 82052d88..f69613c6 100644 --- a/ginac/idx.cpp +++ b/ginac/idx.cpp @@ -21,6 +21,7 @@ */ #include +#include #include #include "idx.h" @@ -546,8 +547,11 @@ ex minimal_dim(const ex & dim1, const ex & dim2) return dim1; else if (dim1 > dim2 || (is_a(dim1) && is_exactly_a(dim2))) return dim2; - else - throw (std::runtime_error("minimal_dim(): index dimensions cannot be ordered")); + else { + std::ostringstream s; + s << "minimal_dim(): index dimensions " << dim1 << " and " << dim2 << " cannot be ordered"; + throw (std::runtime_error(s.str())); + } } } // namespace GiNaC