From 9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Mon, 4 Apr 2011 12:29:42 +0100 Subject: Extend to 4 args --- paludis/util/pool-impl.hh | 8 ++++++++ paludis/util/pool.hh | 3 +++ 2 files changed, 11 insertions(+) diff --git a/paludis/util/pool-impl.hh b/paludis/util/pool-impl.hh index 30142f315..3fdd12b8b 100644 --- a/paludis/util/pool-impl.hh +++ b/paludis/util/pool-impl.hh @@ -139,6 +139,14 @@ namespace paludis return really_create(a1, a2, a3); } + template + template + const std::shared_ptr + Pool::create(const T1_ & a1, const T2_ & a2, const T3_ & a3, const T4_ & a4) const + { + return really_create(a1, a2, a3, a4); + } + template ConcretePoolKey::ConcretePoolKey(const T_ & t) : PoolKey(PoolKeyTypeCodes::get()), diff --git a/paludis/util/pool.hh b/paludis/util/pool.hh index b3adc4d5c..3d5d8a534 100644 --- a/paludis/util/pool.hh +++ b/paludis/util/pool.hh @@ -59,6 +59,9 @@ namespace paludis template const std::shared_ptr create(const T1_ &, const T2_ &, const T3_ &) const PALUDIS_ATTRIBUTE((warn_unused_result)); + + template + const std::shared_ptr create(const T1_ &, const T2_ &, const T3_ &, const T4_ &) const PALUDIS_ATTRIBUTE((warn_unused_result)); }; class PALUDIS_VISIBLE PoolKey -- cgit v1.2.3