aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-06 00:06:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-06 00:06:12 +0000
commitcb7bbe54e8dc5f1c6ea19f09d1ccc0f442cd7d5c (patch)
tree100638518b4909b166c1a683a744caae8a6a3c8e
parentd904570ca82f819c87ce14babd789c5dd1106d52 (diff)
downloadpaludis-cb7bbe54e8dc5f1c6ea19f09d1ccc0f442cd7d5c.tar.gz
paludis-cb7bbe54e8dc5f1c6ea19f09d1ccc0f442cd7d5c.tar.xz
Export smart record key types, for utility functions
-rw-r--r--paludis/util/smart_record.hh.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/util/smart_record.hh.m4 b/paludis/util/smart_record.hh.m4
index 0113c44..2c78303 100644
--- a/paludis/util/smart_record.hh.m4
+++ b/paludis/util/smart_record.hh.m4
@@ -529,6 +529,12 @@ forloop(`idy', `0', decr(idx), `
}
template <typename Tag_::Keys k_>
+ struct GetKeyType
+ {
+ typedef typename GetRecordKeyType<Tag_, k_>::Type Type;
+ };
+
+ template <typename Tag_::Keys k_>
const typename GetRecordKeyType<Tag_, k_>::Type & get() const
{
return RecordKeyGetter<Tag_, `'idx`', k_>::do_get(*this);