aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 12:29:42 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 12:29:42 +0100
commit9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6 (patch)
treec4307eca23693e54a8b29ddb29b37177aeb153a6
parent83be9aeb5b6ce424eda8f901c3418e0db2cbac95 (diff)
downloadpaludis-9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6.tar.gz
paludis-9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6.tar.xz
Extend to 4 args
-rw-r--r--paludis/util/pool-impl.hh8
-rw-r--r--paludis/util/pool.hh3
2 files changed, 11 insertions, 0 deletions
diff --git a/paludis/util/pool-impl.hh b/paludis/util/pool-impl.hh
index 30142f3..3fdd12b 100644
--- a/paludis/util/pool-impl.hh
+++ b/paludis/util/pool-impl.hh
@@ -140,6 +140,14 @@ namespace paludis
}
template <typename T_>
+ template <typename T1_, typename T2_, typename T3_, typename T4_>
+ const std::shared_ptr<const T_>
+ Pool<T_>::create(const T1_ & a1, const T2_ & a2, const T3_ & a3, const T4_ & a4) const
+ {
+ return really_create(a1, a2, a3, a4);
+ }
+
+ template <typename T_>
ConcretePoolKey<T_>::ConcretePoolKey(const T_ & t) :
PoolKey(PoolKeyTypeCodes::get<T_>()),
_value(t)
diff --git a/paludis/util/pool.hh b/paludis/util/pool.hh
index b3adc4d..3d5d8a5 100644
--- a/paludis/util/pool.hh
+++ b/paludis/util/pool.hh
@@ -59,6 +59,9 @@ namespace paludis
template <typename T1_, typename T2_, typename T3_>
const std::shared_ptr<const T_> create(const T1_ &, const T2_ &, const T3_ &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ template <typename T1_, typename T2_, typename T3_, typename T4_>
+ const std::shared_ptr<const T_> create(const T1_ &, const T2_ &, const T3_ &, const T4_ &) const PALUDIS_ATTRIBUTE((warn_unused_result));
};
class PALUDIS_VISIBLE PoolKey