From 332e4b46ad01a53bb2daf245bc0df2aa97fc8bdd Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 19 May 2026 08:27:10 -0400 Subject: [PATCH] xo-alloc2: + utest harness for catch2 accept additional commandline arguments --- include/xo/indentlog/scope.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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_; }