diff options
author | 2011-04-04 12:29:42 +0100 | |
---|---|---|
committer | 2011-04-04 12:29:42 +0100 | |
commit | 9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6 (patch) | |
tree | c4307eca23693e54a8b29ddb29b37177aeb153a6 | |
parent | 83be9aeb5b6ce424eda8f901c3418e0db2cbac95 (diff) | |
download | paludis-9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6.tar.gz paludis-9e4b62bf8019eaf2f77b7cf5bae6ac50529eb8e6.tar.xz |
Extend to 4 args
-rw-r--r-- | paludis/util/pool-impl.hh | 8 | ||||
-rw-r--r-- | paludis/util/pool.hh | 3 |
2 files changed, 11 insertions, 0 deletions
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 @@ -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 b3adc4d5c..3d5d8a534 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 |