From cdb367739f507337ef1aa5c973e4671c908cf361 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 14 Nov 2022 23:05:47 +0100 Subject: [PATCH] [DEBUG] Make some debug output operators compile in factor.cpp... ...for the case when somebody actually #defines DEBUGFACTOR. The operators must be in the same anonymous namespace in which umodpoly, upoly and upvec are typedef'ed. (I'm not really sure I understand why but that's what GCC and CLang are convinced of.) --- ginac/factor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ginac/factor.cpp b/ginac/factor.cpp index fde15b32..d0d9ce03 100644 --- a/ginac/factor.cpp +++ b/ginac/factor.cpp @@ -80,6 +80,9 @@ using namespace cln; namespace GiNaC { +// anonymous namespace to hide all utility functions +namespace { + #ifdef DEBUGFACTOR #define DCOUT(str) cout << #str << endl #define DCOUTVAR(var) cout << #var << ": " << var << endl @@ -133,9 +136,6 @@ ostream& operator<<(ostream& o, const vector>& v) #define DCOUT2(str,var) #endif // def DEBUGFACTOR -// anonymous namespace to hide all utility functions -namespace { - //////////////////////////////////////////////////////////////////////////////// // modular univariate polynomial code -- 2.46.0