]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.cpp
some more comments and cleanups to mul::expand() and ncmul::expand()
[ginac.git] / ginac / tensor.cpp
index 0991f5874a0c65960e2bff875c9d0ff93c678fe5..00d0cdff12da38478cd6ccc5fa8502270d145640 100644 (file)
@@ -268,7 +268,7 @@ ex spinmetric::eval_indexed(const basic & i) const
        const spinidx & i2 = ex_to<spinidx>(i.op(2));
 
        // Convolutions are zero
-       if (static_cast<const indexed &>(i).get_dummy_indices().size() != 0)
+       if (!(static_cast<const indexed &>(i).get_dummy_indices().empty()))
                return _ex0();
 
        // Numeric evaluation
@@ -294,7 +294,7 @@ ex tensepsilon::eval_indexed(const basic & i) const
        GINAC_ASSERT(is_ex_of_type(i.op(0), tensepsilon));
 
        // Convolutions are zero
-       if (static_cast<const indexed &>(i).get_dummy_indices().size() != 0)
+       if (!(static_cast<const indexed &>(i).get_dummy_indices().empty()))
                return _ex0();
 
        // Numeric evaluation