aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-07 21:03:16 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-07 21:03:16 +0000
commit2017213d02b7541585f4843043bd49c7d8c20386 (patch)
tree109da763c780115be2ca0483692e3300fc9ff21d
parent7a43c2e8602afa9eaf174c43181ada24ef87f3f5 (diff)
downloadpaludis-2017213d02b7541585f4843043bd49c7d8c20386.tar.gz
paludis-2017213d02b7541585f4843043bd49c7d8c20386.tar.xz
Add category + package -> qpn operator
-rw-r--r--paludis/qualified_package_name.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/paludis/qualified_package_name.hh b/paludis/qualified_package_name.hh
index e60312e..6bf6964 100644
--- a/paludis/qualified_package_name.hh
+++ b/paludis/qualified_package_name.hh
@@ -119,6 +119,16 @@ namespace paludis
*/
QualifiedPackageNameError(const std::string &) throw ();
};
+
+ /**
+ * Convenience operator to make a QualifiedPackageName from a
+ * PackageNamePart and a CategoryNamePart.
+ */
+ const QualifiedPackageName
+ inline operator+ (const CategoryNamePart & c, const PackageNamePart & p)
+ {
+ return QualifiedPackageName(c, p);
+ }
}
#endif