From 5473c80815c979a31f70c36a8053b0cd89907375 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Tue, 8 Jun 2004 18:50:25 +0000 Subject: [PATCH] synced to 1.2 (template<>) --- ginac/container.h | 2 +- ginac/exprseq.h | 2 +- ginac/lst.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ginac/container.h b/ginac/container.h index 242395b6..11b5be0b 100644 --- a/ginac/container.h +++ b/ginac/container.h @@ -661,7 +661,7 @@ container & container::sort() } /** Specialization of container::unique_() for std::list. */ -inline void container::unique_() +template<> inline void container::unique_() { this->seq.unique(ex_is_equal()); } diff --git a/ginac/exprseq.h b/ginac/exprseq.h index 78ff3360..f28b1f76 100644 --- a/ginac/exprseq.h +++ b/ginac/exprseq.h @@ -32,7 +32,7 @@ namespace GiNaC { typedef container exprseq; /** Specialization of container::get_tinfo() for exprseq. */ -inline unsigned exprseq::get_tinfo() { return TINFO_exprseq; } +template<> inline unsigned exprseq::get_tinfo() { return TINFO_exprseq; } // defined in exprseq.cpp template<> bool exprseq::info(unsigned inf) const; diff --git a/ginac/lst.h b/ginac/lst.h index a5463c8f..415f961d 100644 --- a/ginac/lst.h +++ b/ginac/lst.h @@ -32,16 +32,16 @@ namespace GiNaC { typedef container lst; /** Specialization of container::get_tinfo() for lst. */ -inline unsigned lst::get_tinfo() { return TINFO_lst; } +template<> inline unsigned lst::get_tinfo() { return TINFO_lst; } /** Specialization of container::get_default_flags() for lst. */ -inline unsigned lst::get_default_flags() { return status_flags::not_shareable; } +template<> inline unsigned lst::get_default_flags() { return status_flags::not_shareable; } /** Specialization of container::get_open_delim() for lst. */ -inline char lst::get_open_delim() { return '{'; } +template<> inline char lst::get_open_delim() { return '{'; } /** Specialization of container::get_close_delim() for lst. */ -inline char lst::get_close_delim() { return '}'; } +template<> inline char lst::get_close_delim() { return '}'; } // defined in lst.cpp template<> bool lst::info(unsigned inf) const; -- 2.47.0