xo-alloc2: + utest harness for catch2
Some checks failed
CMake on a single platform / build (push) Has been cancelled

accept additional commandline arguments
This commit is contained in:
Roland Conybeare 2026-05-19 08:27:10 -04:00
commit 332e4b46ad

View file

@ -125,6 +125,20 @@ namespace xo {
public:
template <typename... Tn>
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_; }