diff --git a/lix/libutil/error.hh b/lix/libutil/error.hh index 5306327b0..ea8e87f64 100644 --- a/lix/libutil/error.hh +++ b/lix/libutil/error.hh @@ -193,11 +193,16 @@ public: err.pos = pos; } - void pushTrace(Trace trace) + void pushTrace(Trace const & trace) { err.traces.push_front(trace); } + void pushTrace(Trace && trace) + { + err.traces.emplace_front(trace); + } + template void addTrace(std::shared_ptr && e, std::string_view fs, const Args & ... args) {