From c310941f69ead4371d659241fea06687ac81fe76 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 30 Jan 2014 23:36:53 +0100 Subject: fs/AllocatedPath: add conversion constructor from Path --- src/fs/AllocatedPath.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fs/AllocatedPath.hxx') diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index cea1bc27e..4fb217547 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -70,6 +70,8 @@ public: */ AllocatedPath(AllocatedPath &&other):value(std::move(other.value)) {} + explicit AllocatedPath(Path other):value(other.c_str()) {} + ~AllocatedPath(); /** -- cgit v1.2.3