aboutsummaryrefslogtreecommitdiff
path: root/paludis/literal_metadata_key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/literal_metadata_key.cc')
-rw-r--r--paludis/literal_metadata_key.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/literal_metadata_key.cc b/paludis/literal_metadata_key.cc
index 8eb9a36e8..25aa64dc2 100644
--- a/paludis/literal_metadata_key.cc
+++ b/paludis/literal_metadata_key.cc
@@ -136,6 +136,17 @@ LiteralMetadataStringSetKey::pretty_print_flat(const Formatter<std::string> & f)
return join(value()->begin(), value()->end(), " ", std::tr1::bind(&format_string, _1, f));
}
+ExtraLiteralMetadataValueKeyMethods<long>::~ExtraLiteralMetadataValueKeyMethods()
+{
+}
+
+std::string
+ExtraLiteralMetadataValueKeyMethods<long>::pretty_print() const
+{
+ long v(static_cast<const LiteralMetadataValueKey<long> *>(this)->value());
+ return stringify(v);
+}
+
ExtraLiteralMetadataValueKeyMethods<std::tr1::shared_ptr<const PackageID> >::~ExtraLiteralMetadataValueKeyMethods()
{
}
@@ -181,5 +192,6 @@ LiteralMetadataValueKey<T_>::value() const
template class LiteralMetadataValueKey<FSEntry>;
template class LiteralMetadataValueKey<std::string>;
template class LiteralMetadataValueKey<bool>;
+template class LiteralMetadataValueKey<long>;
template class LiteralMetadataValueKey<std::tr1::shared_ptr<const PackageID> >;