Omit extra qualification (as in struct foo f() vs foo f()).
authorJan Rheinländer <jrheinlaender@gmx.de>
Sun, 26 Sep 2010 12:23:01 +0000 (12:23 +0000)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Fri, 26 Nov 2010 22:15:56 +0000 (00:15 +0200)
According to the Standard extra qualification like this

struct foo;
struct foo f();

is valid. However msvc does not accept such a code. So let's omit extra
qualification, as in

struct foo;
foo f();

(it's still valid C++) to make msvc happy.

ginac/polynomial/collect_vargs.cpp

index c4368fb..acae53e 100644 (file)
@@ -69,7 +69,7 @@ struct compare_terms
 };
 
 template<typename T, typename CoeffCMP>
-static struct compare_terms<T, CoeffCMP>
+static compare_terms<T, CoeffCMP>
 make_compare_terms(const T& dummy, const CoeffCMP& coeff_cmp)
 {
        return compare_terms<T, CoeffCMP>(coeff_cmp);