From 5b271ab557e07090fd87d816da06c4f765b2dde9 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sun, 27 Nov 2005 00:08:06 +0000 Subject: [PATCH] * Forward declare simplify indexed for GCC 4.1 [Sheplyakov Alexei]. --- ginac/indexed.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index e9c4fee2..5ed31f32 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -738,6 +738,9 @@ template ex idx_symmetrization(const ex& r,const exvector& local_dummy_ return q; } +// Forward declaration needed in absence of friend injection, C.f. [namespace.memdef]: +ex simplify_indexed(const ex & e, exvector & free_indices, exvector & dummy_indices, const scalar_products & sp); + /** Simplify product of indexed expressions (commutative, noncommutative and * simple squares), return list of free indices. */ ex simplify_indexed_product(const ex & e, exvector & free_indices, exvector & dummy_indices, const scalar_products & sp) -- 2.49.0