diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-05 17:35:26 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-05 17:35:26 +0200 |
| commit | a405d10a2dd820f83aea7be40baefa23b31939ab (patch) | |
| tree | bbcced26aa3e7bb6e2d2d4575d49fb94509da95b /test/unit_tests/call_stack.cpp | |
| parent | cmake: use BoostConfig.cmake (diff) | |
| download | winapi-debug-a405d10a2dd820f83aea7be40baefa23b31939ab.tar.gz winapi-debug-a405d10a2dd820f83aea7be40baefa23b31939ab.zip | |
upgrade to std::optional
Diffstat (limited to 'test/unit_tests/call_stack.cpp')
| -rw-r--r-- | test/unit_tests/call_stack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit_tests/call_stack.cpp b/test/unit_tests/call_stack.cpp index 8195137..84cfc2a 100644 --- a/test/unit_tests/call_stack.cpp +++ b/test/unit_tests/call_stack.cpp @@ -9,9 +9,9 @@ #include <winapi/debug.hpp> -#include <boost/optional.hpp> #include <boost/test/unit_test.hpp> +#include <optional> #include <string> #include <system_error> #include <vector> @@ -36,7 +36,7 @@ BOOST_AUTO_TEST_CASE(call_stack) { } // Second, resolve the symbols: - std::vector<boost::optional<winapi::SymbolInfo>> symbols; + std::vector<std::optional<winapi::SymbolInfo>> symbols; symbols.reserve(call_stack.length()); BOOST_TEST_MESSAGE("Resolved symbols:"); @@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE(call_stack) { << ' ' << symbol.get_name()); symbols.emplace_back(std::move(symbol)); } catch (const std::system_error& e) { - symbols.emplace_back(boost::none); + symbols.emplace_back(std::nullopt); BOOST_TEST_MESSAGE('\t' << winapi::address::format(addr) << " Couldn't resolve symbol: " << e.what()); } |
