summaryrefslogtreecommitdiff
path: root/src/ast/path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r--src/ast/path.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp
index a2ca316b..390271fe 100644
--- a/src/ast/path.hpp
+++ b/src/ast/path.hpp
@@ -180,7 +180,10 @@ public:
struct TagLocal {};
Path(TagLocal, ::std::string name):
m_class(LOCAL),
- m_nodes({PathNode(name, {})})
+ m_nodes({PathNode( ::std::move(name), {} )})
+ {}
+ Path(::std::string name):
+ Path(TagLocal(), ::std::move(name))
{}
struct TagSuper {};
Path(TagSuper):