diff --git a/include/xo/indentlog/scope.hpp b/include/xo/indentlog/scope.hpp index 42a664c..8ed5749 100644 --- a/include/xo/indentlog/scope.hpp +++ b/include/xo/indentlog/scope.hpp @@ -125,6 +125,20 @@ namespace xo { public: template basic_scope(scope_setup setup, Tn&&... rest); + basic_scope(basic_scope && other) noexcept + : dest_sbuf_{other.dest_sbuf_}, + style_{other.style_}, + name1_{other.name1_}, + name2_{other.name2_}, + file_{other.file_}, + line_{other.line_}, + finalized_{other.finalized_} + { + other.finalized_ = true; + } + basic_scope(const basic_scope &) = delete; + basic_scope & operator=(const basic_scope &) = delete; + basic_scope & operator=(basic_scope &&) = delete; ~basic_scope(); bool enabled() const { return !finalized_; }