From 0bd01824f6b035e460e8821adf6913de3c78a3c4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 30 Jan 2014 22:15:13 +0100 Subject: [PATCH] fs/AllocatedPath: add Build() overlays with Path arguments --- src/fs/AllocatedPath.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 68a1a4766..cea1bc27e 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -97,6 +97,16 @@ public: b, PathTraitsFS::GetLength(b)); } + gcc_pure gcc_nonnull_all + static AllocatedPath Build(Path a, const_pointer b) { + return Build(a.c_str(), b); + } + + gcc_pure gcc_nonnull_all + static AllocatedPath Build(Path a, Path b) { + return Build(a, b.c_str()); + } + gcc_pure gcc_nonnull_all static AllocatedPath Build(const_pointer a, const AllocatedPath &b) { return Build(a, PathTraitsFS::GetLength(a),