From: Richard Kreckel Date: Sun, 27 Nov 2005 00:08:06 +0000 (+0000) Subject: * Forward declare simplify indexed for GCC 4.1 [Sheplyakov Alexei]. X-Git-Tag: release_1-4-0~129 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=5b271ab557e07090fd87d816da06c4f765b2dde9;p=ginac.git * Forward declare simplify indexed for GCC 4.1 [Sheplyakov Alexei]. --- 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)