From f271f67d2fc798079326e450bc0e53eb80fb2e96 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 3 Feb 2021 14:40:49 +0100 Subject: [PATCH] Avoid "instantiation of variable 'reg_info' required..." warning. With -Wundefined-var-template (on by default), CLang++ warns that no definition for the static 'reg_info' member variable is available. --- ginac/exprseq.h | 3 +++ ginac/lst.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ginac/exprseq.h b/ginac/exprseq.h index c0fb9070..d7e78385 100644 --- a/ginac/exprseq.h +++ b/ginac/exprseq.h @@ -31,6 +31,9 @@ namespace GiNaC { typedef container exprseq; +/** Definition of container::reg_info for exprseq. */ +template<> registered_class_info exprseq::reg_info; + // defined in exprseq.cpp template<> bool exprseq::info(unsigned inf) const; diff --git a/ginac/lst.h b/ginac/lst.h index 8591861c..5038fca6 100644 --- a/ginac/lst.h +++ b/ginac/lst.h @@ -31,6 +31,9 @@ namespace GiNaC { typedef container lst; +/** Definition of container::reg_info for lst. */ +template<> registered_class_info lst::reg_info; + /** Specialization of container::get_default_flags() for lst. */ template<> inline unsigned lst::get_default_flags() { return status_flags::not_shareable; } -- 2.45.0