From: Richard Kreckel Date: Wed, 3 Feb 2021 13:40:49 +0000 (+0100) Subject: Avoid "instantiation of variable 'reg_info' required..." warning. X-Git-Tag: release_1-8-1~12 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=f271f67d2fc798079326e450bc0e53eb80fb2e96 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. --- 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; }