From 994f91c5c5b1a3ab40bc5545070dab96b6ff0098 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 5 Jun 2026 11:34:11 +0200 Subject: fix weird errors For some reason, I can no longer initialize a CallStack instance from an initializer list. On CI, it works fine; maybe my compiler is newer and somehow defaults to a newer standard or something? Idk --- src/call_stack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/call_stack.cpp b/src/call_stack.cpp index 4a13b3a..e69c10d 100644 --- a/src/call_stack.cpp +++ b/src/call_stack.cpp @@ -89,11 +89,11 @@ CallStack CallStack::capture() { std::transform(frames_impl.cbegin(), frames_impl.cend(), frames.begin(), [](void* addr) { return reinterpret_cast
(addr); }); - return {frames, length}; + return {std::move(frames), length}; } bool CallStack::for_each_address(const AddressCallback& callback) const { - for (std::size_t i = 0; i < length; ++i) { + for (std::size_t i = 0; i < _length; ++i) { if (!callback(frames[i])) { return false; } -- cgit v1.3